mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 00:20:44 +08:00
removed duplicate assignment of primaryKey in cubrid
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user