Commit 6177ba44 authored by andig's avatar andig

Retain autoincrement

parent 59efc95d
...@@ -625,6 +625,9 @@ class MySqlPlatform extends AbstractPlatform ...@@ -625,6 +625,9 @@ class MySqlPlatform extends AbstractPlatform
$sql[] = 'ALTER TABLE ' . $table . ' MODIFY ' . $sql[] = 'ALTER TABLE ' . $table . ' MODIFY ' .
$this->getColumnDeclarationSQL($column->getQuotedName($this), $column->toArray()); $this->getColumnDeclarationSQL($column->getQuotedName($this), $column->toArray());
// original autoincrement information might be needed later on by other parts of the table alteration
$column->setAutoincrement(true);
} }
} }
} }
...@@ -668,6 +671,9 @@ class MySqlPlatform extends AbstractPlatform ...@@ -668,6 +671,9 @@ class MySqlPlatform extends AbstractPlatform
$sql[] = 'ALTER TABLE ' . $table . ' MODIFY ' . $sql[] = 'ALTER TABLE ' . $table . ' MODIFY ' .
$this->getColumnDeclarationSQL($column->getQuotedName($this), $column->toArray()); $this->getColumnDeclarationSQL($column->getQuotedName($this), $column->toArray());
// original autoincrement information might be needed later on by other parts of the table alteration
$column->setAutoincrement(true);
} }
} }
} }
......
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