Skip to content

Commit

Permalink
Remove SchemaInterface::TYPE_JSONB constant (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov authored May 9, 2024
1 parent c702494 commit f0f8d90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
and change parameters from `$table, $columns, $rows` to `$table, $rows, $columns = []` (@Tigrov)
- Enh #834: Refactor `AbstractCommand::insertBatch()`, add `Quoter::getRawTableName()` to `QuoterInterface` (@Tigrov)
- Chg #836: Remove `AbstractDMLQueryBuilder::getTypecastValue()` method (@Tigrov)
- Chg #767: Remove `$table` parameter from `normalizeColumnNames()` and `getNormalizeColumnNames()` methods
- Chg #837: Remove `$table` parameter from `normalizeColumnNames()` and `getNormalizeColumnNames()` methods
of `AbstractDMLQueryBuilder` class (@Tigrov)
- Chg #838: Remove `SchemaInterface::TYPE_JSONB` constant (@Tigrov)

## 1.3.0 March 21, 2024

Expand Down
6 changes: 5 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $db->createCommand()->insertBatch('user', $values)->execute();

### New methods in `QuoterInterface`

* `QuoterInterface::getRawTableName()` - returns the raw table name without quotes.
- `QuoterInterface::getRawTableName()` - returns the raw table name without quotes.

### Remove deprecated methods

Expand All @@ -67,3 +67,7 @@ $db->createCommand()->insertBatch('user', $values)->execute();

- `$table` parameter from `AbstractDMLQueryBuilder::normalizeColumnNames()` method
- `$table` parameter from `AbstractDMLQueryBuilder::getNormalizeColumnNames()` method

### Remove deprecated constants

- `SchemaInterface::TYPE_JSONB`
6 changes: 0 additions & 6 deletions src/Schema/SchemaInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,6 @@ interface SchemaInterface extends ConstraintSchemaInterface
* Define the abstract column type as `json`.
*/
public const TYPE_JSON = 'json';
/**
* Define the abstract column type as `jsonb`.
*
* @deprecated will be removed in version 2.0.0. Use `SchemaInterface::TYPE_JSON` instead.
*/
public const TYPE_JSONB = 'jsonb';

/**
* Define the php type as `integer` for cast to php value.
Expand Down

0 comments on commit f0f8d90

Please sign in to comment.