Commit dd5347b0 authored by Jonathan.Wage's avatar Jonathan.Wage

Fix to alter table command.

parent 41f8d264
...@@ -59,7 +59,7 @@ class Doctrine_Migration_Process ...@@ -59,7 +59,7 @@ class Doctrine_Migration_Process
foreach ($tables as $table) { foreach ($tables as $table) {
$conn = $this->getConnection($table['newTableName']); $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 ...@@ -72,7 +72,7 @@ class Doctrine_Migration_Process
$options = $column['options']; $options = $column['options'];
$options['type'] = $column['type']; $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 ...@@ -81,7 +81,7 @@ class Doctrine_Migration_Process
foreach ($columns as $column) { foreach ($columns as $column) {
$conn = $this->getConnection($column['tableName']); $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 ...@@ -94,7 +94,7 @@ class Doctrine_Migration_Process
$options = $column['options']; $options = $column['options'];
$options['type'] = $column['type']; $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))));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment