MSSQL AR tests.

This commit is contained in:
resurtm
2013-05-22 22:37:09 +06:00
parent 1f9a46850c
commit 2430ebe95d
2 changed files with 12 additions and 7 deletions

View File

@@ -290,13 +290,6 @@ SQL;
$table->primaryKey = $this->db
->createCommand($sql, array(':tableName' => $table->name, ':schemaName' => $table->schemaName))
->queryColumn();
if (count($table->primaryKey) == 0) {
// table does not have primary key
$table->primaryKey = null;
} elseif (count($table->primaryKey) == 1) {
// table has one primary key
$table->primaryKey = $table->primaryKey[0];
}
}
/**