Commit cc5426e5 by resurtm

Removed unnecessary code from MSSQL schema.

parent 3870df7b
...@@ -241,15 +241,11 @@ SQL; ...@@ -241,15 +241,11 @@ SQL;
} }
foreach ($columns as $column) { foreach ($columns as $column) {
$column = $this->loadColumnSchema($column); $column = $this->loadColumnSchema($column);
if (is_array($table->primaryKey)) { foreach ($table->primaryKey as $primaryKey) {
foreach ($table->primaryKey as $primaryKeyColumn) { if (strcasecmp($column->name, $primaryKey) === 0) {
if (strcasecmp($column->name, $primaryKeyColumn) === 0) { $column->isPrimaryKey = true;
$column->isPrimaryKey = true; break;
break;
}
} }
} else {
$column->isPrimaryKey = strcasecmp($column->name, $table->primaryKey) === 0;
} }
if ($column->isPrimaryKey && $column->autoIncrement) { if ($column->isPrimaryKey && $column->autoIncrement) {
$table->sequenceName = ''; $table->sequenceName = '';
......
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