Skip to content

Commit

Permalink
Merge pull request #6755 from morozov/deprecate-get-portable-table-de…
Browse files Browse the repository at this point in the history
…finition

Deprecate `AbstractSchemaManager::_getPortableTableDefinition()`
  • Loading branch information
morozov authored Feb 2, 2025
2 parents 8db2066 + c5e1e02 commit 8bac6a0
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ awareness about deprecated code.

# Upgrade to 4.3

## Deprecated `AbstractSchemaManager::_getPortableTableDefinition()`

The `AbstractSchemaManager::_getPortableTableDefinition()` method has been deprecated. Use the schema name and the
unqualified table name separately instead.

## Deprecated `PostgreSQLSchemaManager` methods related to the current schema

The following `PostgreSQLSchemaManager` methods have been deprecated:
Expand Down
6 changes: 5 additions & 1 deletion src/Schema/AbstractSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,11 @@ protected function _getPortableTableIndexesList(array $rows, string $tableName):
return $indexes;
}

/** @param array<string, string> $table */
/**
* @deprecated Use the schema name and the unqualified table name separately instead.
*
* @param array<string, string> $table
*/
abstract protected function _getPortableTableDefinition(array $table): string;

/** @param array<string, mixed> $view */
Expand Down
2 changes: 2 additions & 0 deletions src/Schema/DB2SchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ protected function _getPortableTableColumnDefinition(array $tableColumn): Column
}

/**
* @deprecated Use the schema name and the unqualified table name separately instead.
*
* {@inheritDoc}
*/
protected function _getPortableTableDefinition(array $table): string
Expand Down
2 changes: 2 additions & 0 deletions src/Schema/MySQLSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class MySQLSchemaManager extends AbstractSchemaManager
private ?DefaultTableOptions $defaultTableOptions = null;

/**
* @deprecated Use the schema name and the unqualified table name separately instead.
*
* {@inheritDoc}
*/
protected function _getPortableTableDefinition(array $table): string
Expand Down
2 changes: 2 additions & 0 deletions src/Schema/OracleSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ protected function _getPortableViewDefinition(array $view): View
}

/**
* @deprecated Use the schema name and the unqualified table name separately instead.
*
* {@inheritDoc}
*/
protected function _getPortableTableDefinition(array $table): string
Expand Down
2 changes: 2 additions & 0 deletions src/Schema/PostgreSQLSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ protected function _getPortableViewDefinition(array $view): View
}

/**
* @deprecated Use the schema name and the unqualified table name separately instead.
*
* {@inheritDoc}
*/
protected function _getPortableTableDefinition(array $table): string
Expand Down
2 changes: 2 additions & 0 deletions src/Schema/SQLServerSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ protected function _getPortableTableForeignKeyDefinition(array $tableForeignKey)
}

/**
* @deprecated Use the schema name and the unqualified table name separately instead.
*
* {@inheritDoc}
*/
protected function _getPortableTableDefinition(array $table): string
Expand Down
2 changes: 2 additions & 0 deletions src/Schema/SQLiteSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public function listTableForeignKeys(string $table): array
}

/**
* @deprecated Use the schema name and the unqualified table name separately instead.
*
* {@inheritDoc}
*/
protected function _getPortableTableDefinition(array $table): string
Expand Down

0 comments on commit 8bac6a0

Please sign in to comment.