Repository navigation
Remove unused schema methods #1175
Copy link
Copy link
Open
Labels
severity:BC breakingBreaks backwards compatibilityBreaks backwards compatibility
Milestone
Description
Description
SchemaInterface::
getSchemaChecks()getSchemaDefaultValues()getSchemaIndexes()getSchemaPrimaryKeys()getSchemaUniques()
db/src/Constraint/ConstraintSchemaInterface.php
Lines 16 to 89 in f26a751
| interface ConstraintSchemaInterface | |
| { | |
| /** | |
| * Returns check constraints for all tables in the database. | |
| * | |
| * @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema | |
| * name. | |
| * @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be | |
| * returned if available. | |
| * | |
| * @return Check[] The check constraints for all tables in the database. | |
| */ | |
| public function getSchemaChecks(string $schema = '', bool $refresh = false): array; | |
| /** | |
| * Returns default value constraints for all tables in the database. | |
| * | |
| * @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema | |
| * name. | |
| * @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be | |
| * returned if available. | |
| * | |
| * @return DefaultValue[] The default value constraints for all tables in the database. | |
| */ | |
| public function getSchemaDefaultValues(string $schema = '', bool $refresh = false): array; | |
| /** | |
| * Returns foreign keys for all tables in the database. | |
| * | |
| * @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema | |
| * name. | |
| * @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be | |
| * returned if available. | |
| * | |
| * @return ForeignKey[] The foreign keys for all tables in the database. | |
| */ | |
| public function getSchemaForeignKeys(string $schema = '', bool $refresh = false): array; | |
| /** | |
| * Returns indexes for all tables in the database. | |
| * | |
| * @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema | |
| * name. | |
| * @param bool $refresh Whether to fetch the latest available table schemas. If this is false, cached data may be | |
| * returned if available. | |
| * | |
| * @return Index[] The indexes for all tables in the database. | |
| */ | |
| public function getSchemaIndexes(string $schema = '', bool $refresh = false): array; | |
| /** | |
| * Returns primary keys for all tables in the database. | |
| * | |
| * @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema | |
| * name. | |
| * @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be | |
| * returned if available. | |
| * | |
| * @return Index[] The primary keys for all tables in the database. | |
| */ | |
| public function getSchemaPrimaryKeys(string $schema = '', bool $refresh = false): array; | |
| /** | |
| * Returns unique constraints for all tables in the database. | |
| * | |
| * @param string $schema The schema of the tables. Defaults to empty string, meaning the current or default schema | |
| * name. | |
| * @param bool $refresh Whether to fetch the latest available table schemas. If this is `false`, cached data may be | |
| * returned if available. | |
| * | |
| * @return Index[] The unique constraints for all tables in the database. | |
| */ | |
| public function getSchemaUniques(string $schema = '', bool $refresh = false): array; | |
Package version
2
PHP version
any
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
severity:BC breakingBreaks backwards compatibilityBreaks backwards compatibility
Activity
[-]Schema methods should return values with related table names[/-][+]Remove unused schema methods[/+]samdark commentedon Apr 27, 2026
👍
refactor(schema)!: remove unused schema-wide constraint getters
test: cover unsupported default values via getTableDefaultValues()
KalimeroMK commentedon Aug 2, 2026
I have this ready as a coordinated set of five PRs, all green on CI:
ConstraintSchemaInterfaceandAbstractSchemagetTableDefaultValues()Schema::getSchemaDefaultValues()(cleanup only)vjik commentedon Aug 2, 2026
@KalimeroMK Thanks for contributing! I'd appreciate it if you could avoid posting low-quality or unreviewed AI-generated content in PRs and issues, as in the previous message.