1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Fix to alter table command.

This commit is contained in:
Jonathan.Wage 2007-10-15 23:16:54 +00:00
parent 41f8d264e5
commit dd5347b096

View File

@ -59,7 +59,7 @@ class Doctrine_Migration_Process
foreach ($tables as $table) {
$conn = $this->getConnection($table['newTableName']);
$conn->export->alterTable($table['oldTableName'], array('name' => $table['newTableName']), true);
$conn->export->alterTable($table['oldTableName'], array('name' => $table['newTableName']));
}
}
@ -72,7 +72,7 @@ class Doctrine_Migration_Process
$options = $column['options'];
$options['type'] = $column['type'];
$conn->export->alterTable($column['tableName'], array('add' => array($column['columnName'] => $options)), true);
$conn->export->alterTable($column['tableName'], array('add' => array($column['columnName'] => $options)));
}
}
@ -81,7 +81,7 @@ class Doctrine_Migration_Process
foreach ($columns as $column) {
$conn = $this->getConnection($column['tableName']);
$conn->export->alterTable($column['tableName'], array('rename' => array($column['oldColumnName'] => array('name' => $column['newColumnName']))), true);
$conn->export->alterTable($column['tableName'], array('rename' => array($column['oldColumnName'] => array('name' => $column['newColumnName']))));
}
}
@ -94,7 +94,7 @@ class Doctrine_Migration_Process
$options = $column['options'];
$options['type'] = $column['type'];
$conn->export->alterTable($column['tableName'], array('change' => array($column['columnName'] => array('definition' => $options))), true);
$conn->export->alterTable($column['tableName'], array('change' => array($column['columnName'] => array('definition' => $options))));
}
}