mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Changed type column type from int to smallInt in RBAC migrations
Closes #11929
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user