Changed type column type from int to smallInt in RBAC migrations

Closes #11929
This commit is contained in:
SilverFire - Dmitry Naumenko
2016-11-05 21:19:50 +02:00
parent 6f4c52a53d
commit 8642c3f892
7 changed files with 8 additions and 7 deletions

View File

@ -61,7 +61,7 @@ class m140506_102106_rbac_init extends \yii\db\Migration
$this->createTable($authManager->itemTable, [
'name' => $this->string(64)->notNull(),
'type' => $this->integer()->notNull(),
'type' => $this->smallInteger()->notNull(),
'description' => $this->text(),
'rule_name' => $this->string(64),
'data' => $this->text(),
@ -146,4 +146,4 @@ class m140506_102106_rbac_init extends \yii\db\Migration
$this->dropTable($authManager->itemTable);
$this->dropTable($authManager->ruleTable);
}
}
}

View File

@ -26,7 +26,7 @@ create table [auth_rule]
create table [auth_item]
(
[name] varchar(64) not null,
[type] integer not null,
[type] smallint not null,
[description] text,
[rule_name] varchar(64),
[data] text,

View File

@ -26,7 +26,7 @@ create table `auth_rule`
create table `auth_item`
(
`name` varchar(64) not null,
`type` integer not null,
`type` smallint not null,
`description` text,
`rule_name` varchar(64),
`data` text,

View File

@ -28,7 +28,7 @@ create table "auth_rule"
create table "auth_item"
(
"name" varchar(64) not null,
"type" integer not null,
"type" smallint not null,
"description" varchar(1000),
"rule_name" varchar(64),
"data" varchar(1000),

View File

@ -26,7 +26,7 @@ create table "auth_rule"
create table "auth_item"
(
"name" varchar(64) not null,
"type" integer not null,
"type" smallint not null,
"description" text,
"rule_name" varchar(64),
"data" text,

View File

@ -26,7 +26,7 @@ create table "auth_rule"
create table "auth_item"
(
"name" varchar(64) not null,
"type" integer not null,
"type" smallint not null,
"description" text,
"rule_name" varchar(64),
"data" text,