Also quote old column name during DB migration

This fixes alter table commands that didn't quote the old column name
This commit is contained in:
Vincent Petry 2014-02-26 16:26:16 +01:00 committed by Thomas Müller
parent 230e5e3788
commit 22adc397de

View file

@ -82,6 +82,9 @@ class MDB2SchemaManager {
$platform = $this->conn->getDatabasePlatform();
foreach($schemaDiff->changedTables as $tableDiff) {
$tableDiff->name = $platform->quoteIdentifier($tableDiff->name);
foreach($tableDiff->changedColumns as $column) {
$column->oldColumnName = $platform->quoteIdentifier($column->oldColumnName);
}
}
if ($generateSql) {