Browse Source

changed querybuilder typemap to lower case

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
0bf2daddd5
  1. 2
      framework/yii/db/cubrid/QueryBuilder.php
  2. 2
      framework/yii/db/mssql/QueryBuilder.php
  3. 2
      framework/yii/db/mysql/QueryBuilder.php
  4. 2
      framework/yii/db/sqlite/QueryBuilder.php

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

@ -21,7 +21,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
* @var array mapping from abstract column types (keys) to physical column types (values).
*/
public $typeMap = array(
Schema::TYPE_PK => 'int NOT NULL AUTO_INCREMENT PRIMARY KEY',
Schema::TYPE_PK => 'int not null auto_increment primary key',
Schema::TYPE_STRING => 'varchar(255)',
Schema::TYPE_TEXT => 'varchar',
Schema::TYPE_SMALLINT => 'smallint',

2
framework/yii/db/mssql/QueryBuilder.php

@ -21,7 +21,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
* @var array mapping from abstract column types (keys) to physical column types (values).
*/
public $typeMap = array(
Schema::TYPE_PK => 'int IDENTITY PRIMARY KEY',
Schema::TYPE_PK => 'int identity primary key',
Schema::TYPE_STRING => 'varchar(255)',
Schema::TYPE_TEXT => 'text',
Schema::TYPE_SMALLINT => 'smallint(6)',

2
framework/yii/db/mysql/QueryBuilder.php

@ -22,7 +22,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
* @var array mapping from abstract column types (keys) to physical column types (values).
*/
public $typeMap = array(
Schema::TYPE_PK => 'int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY',
Schema::TYPE_PK => 'int(11) not null auto_increment primary key',
Schema::TYPE_STRING => 'varchar(255)',
Schema::TYPE_TEXT => 'text',
Schema::TYPE_SMALLINT => 'smallint(6)',

2
framework/yii/db/sqlite/QueryBuilder.php

@ -23,7 +23,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
* @var array mapping from abstract column types (keys) to physical column types (values).
*/
public $typeMap = array(
Schema::TYPE_PK => 'integer PRIMARY KEY AUTOINCREMENT NOT NULL',
Schema::TYPE_PK => 'integer primary key autoincrement not null',
Schema::TYPE_STRING => 'varchar(255)',
Schema::TYPE_TEXT => 'text',
Schema::TYPE_SMALLINT => 'smallint',

Loading…
Cancel
Save