Commit 18ed2dd2 authored by Juozas Kaziukenas's avatar Juozas Kaziukenas Committed by Benjamin Eberlei

Removed autoincrement hack

parent 3231fbd3
......@@ -146,29 +146,6 @@ class MsSqlPlatform extends AbstractPlatform
}
}
/**
* @override
*/
public function getCreateTableSQL(Table $table, $createFlags=self::CREATE_INDEXES)
{
// Foreign keys cannot be identity columns at the same time
foreach ($table->getForeignKeys() AS $definition) {
$columns = $definition->getLocalColumns();
if (count($columns) != 1)
continue;
foreach ($table->getIndexes() AS $index) {
/* @var $index Index */
if ($index->isPrimary() && in_array($columns[0], $index->getColumns())) {
$table->getColumn($columns[0])->setAutoincrement(false);
}
}
}
return parent::getCreateTableSQL($table, $createFlags);
}
/**
* @override
*/
......
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