Browse Source

removed duplicate assignment of primaryKey in cubrid

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
a0824422b2
  1. 2
      framework/yii/db/cubrid/Schema.php

2
framework/yii/db/cubrid/Schema.php

@ -180,7 +180,7 @@ class Schema extends \yii\db\Schema
$column->name = $info['Field'];
$column->allowNull = $info['Null'] === 'YES';
$column->isPrimaryKey = strpos($info['Key'], 'PRI') !== false;
$column->isPrimaryKey = false; // primary key will be set by loadTableSchema() later
$column->autoIncrement = stripos($info['Extra'], 'auto_increment') !== false;
$column->dbType = strtolower($info['Type']);

Loading…
Cancel
Save