We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unique indexes can be loaded in 3 different ways:
Schema::loadTableConstraints(): Constraint[]
AbstractSchema::getTableUniques()
Schema::loadTableIndexes(): IndexConstraint[]
AbstractSchema::getTableIndexes()
$index->isUnique()
Schema::findUniqueIndexes(): array
SchemaInterface::findUniqueIndexes()
PgSQL https://github.com/yiisoft/db-pgsql/blob/535975396d865da6cb15ed7bee5648c27a9b7360/src/Schema.php#L894 https://github.com/yiisoft/db-pgsql/tree/535975396d865da6cb15ed7bee5648c27a9b7360/src/Schema.php#L357 https://github.com/yiisoft/db-pgsql/tree/535975396d865da6cb15ed7bee5648c27a9b7360/src/Schema.php#L630
MySQL https://github.com/yiisoft/db-mysql/blob/4dd4e13502a0f047627c398854fc733a41054370/src/Schema.php#L618 https://github.com/yiisoft/db-mysql/blob/4dd4e13502a0f047627c398854fc733a41054370/src/Schema.php#L770 https://github.com/yiisoft/db-mysql/blob/4dd4e13502a0f047627c398854fc733a41054370/src/Schema.php#L158
getTableUniques()
@deprecated
SchemaInterface::findUniqueIndexes(): array
loadTableIndexes()
getTableIndexes()
Schema::loadTableConstraints()
The text was updated successfully, but these errors were encountered:
Schema::getTableUniques()
Related with
db/src/QueryBuilder/AbstractDMLQueryBuilder.php
Lines 342 to 359 in 12b8927
Sorry, something went wrong.
No branches or pull requests
Unique indexes can be loaded in 3 different ways:
Schema::loadTableConstraints(): Constraint[]
<-AbstractSchema::getTableUniques()
Schema::loadTableIndexes(): IndexConstraint[]
<-AbstractSchema::getTableIndexes()
with check$index->isUnique()
Schema::findUniqueIndexes(): array
<-SchemaInterface::findUniqueIndexes()
PgSQL
https://github.com/yiisoft/db-pgsql/blob/535975396d865da6cb15ed7bee5648c27a9b7360/src/Schema.php#L894
https://github.com/yiisoft/db-pgsql/tree/535975396d865da6cb15ed7bee5648c27a9b7360/src/Schema.php#L357
https://github.com/yiisoft/db-pgsql/tree/535975396d865da6cb15ed7bee5648c27a9b7360/src/Schema.php#L630
MySQL
https://github.com/yiisoft/db-mysql/blob/4dd4e13502a0f047627c398854fc733a41054370/src/Schema.php#L618
https://github.com/yiisoft/db-mysql/blob/4dd4e13502a0f047627c398854fc733a41054370/src/Schema.php#L770
https://github.com/yiisoft/db-mysql/blob/4dd4e13502a0f047627c398854fc733a41054370/src/Schema.php#L158
Suggestion
getTableUniques()
@deprecated
SchemaInterface::findUniqueIndexes(): array
usegetTableUniques()
insteadloadTableIndexes()
and unique indexes in one waygetTableIndexes()
with check$index->isUnique()
Schema::loadTableConstraints()
in one or more queriesThe text was updated successfully, but these errors were encountered: