Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SchemaInterface::TYPE_JSONB constant #838

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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