From d370eeb9b3501d60ed02e645c5814460e5e4c376 Mon Sep 17 00:00:00 2001 From: Michael Moravec Date: Mon, 15 Apr 2019 18:53:35 +0200 Subject: [PATCH] Remove deprecated Table::renameColumn() --- UPGRADE.md | 1 + lib/Doctrine/DBAL/Schema/Table.php | 19 ------------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index d8c11b8ba3d..c41b644918b 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -9,6 +9,7 @@ * Removed `MysqlPlatform::getCollationFieldDeclaration()`. * Removed `AbstractPlatform::getIdentityColumnNullInsertSQL()`. * Removed `Table::addUnnamedForeignKeyConstraint()` and `Table::addNamedForeignKeyConstraint()`. + * Removed `Table::renameColumn()`. * Removed `SQLParserUtils::getPlaceholderPositions()`. * `SQLParserUtils::*_TOKEN` constants made private. diff --git a/lib/Doctrine/DBAL/Schema/Table.php b/lib/Doctrine/DBAL/Schema/Table.php index 8c3a19d755b..8dfef9ac6e7 100644 --- a/lib/Doctrine/DBAL/Schema/Table.php +++ b/lib/Doctrine/DBAL/Schema/Table.php @@ -301,25 +301,6 @@ public function addColumn($columnName, $typeName, array $options = []) return $column; } - /** - * Renames a Column. - * - * @deprecated - * - * @param string $oldColumnName - * @param string $newColumnName - * - * @throws DBALException - */ - public function renameColumn($oldColumnName, $newColumnName) - { - throw new DBALException( - 'Table#renameColumn() was removed, because it drops and recreates the column instead. ' . - 'There is no fix available, because a schema diff cannot reliably detect if a column ' . - 'was renamed or one column was created and another one dropped.' - ); - } - /** * Change Column Details. *