From a0824422b234f9ea949f41726657ffc953c8a67d Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Sun, 17 Nov 2013 15:43:05 +0100 Subject: [PATCH] removed duplicate assignment of primaryKey in cubrid --- framework/yii/db/cubrid/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/db/cubrid/Schema.php b/framework/yii/db/cubrid/Schema.php index 3131fa8..458f2e3 100644 --- a/framework/yii/db/cubrid/Schema.php +++ b/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']);