Browse Source

Changed `type` column type from `int` to `smallInt` in RBAC migrations

Closes #11929
tags/2.0.11
SilverFire - Dmitry Naumenko 8 years ago
parent
commit
8642c3f892
  1. 1
      framework/CHANGELOG.md
  2. 4
      framework/rbac/migrations/m140506_102106_rbac_init.php
  3. 2
      framework/rbac/migrations/schema-mssql.sql
  4. 2
      framework/rbac/migrations/schema-mysql.sql
  5. 2
      framework/rbac/migrations/schema-oci.sql
  6. 2
      framework/rbac/migrations/schema-pgsql.sql
  7. 2
      framework/rbac/migrations/schema-sqlite.sql

1
framework/CHANGELOG.md

@ -25,6 +25,7 @@ Yii Framework 2 Change Log
- Bug #4113: Error page stacktrace was generating links to private methods which are not part of the API docs (samdark)
- Bug #12879: Console progress bar was not working properly in Windows terminals (samdark, kids-return)
- Enh #12881: Added `removeValue` method to `yii\helpers\BaseArrayHelper` (nilsburg)
- Enh #11929: Changed `type` column type from `int` to `smallInt` in RBAC migrations (silverfire)
2.0.10 October 20, 2016

4
framework/rbac/migrations/m140506_102106_rbac_init.php

@ -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);
}
}
}

2
framework/rbac/migrations/schema-mssql.sql

@ -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,

2
framework/rbac/migrations/schema-mysql.sql

@ -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,

2
framework/rbac/migrations/schema-oci.sql

@ -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),

2
framework/rbac/migrations/schema-pgsql.sql

@ -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,

2
framework/rbac/migrations/schema-sqlite.sql

@ -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,

Loading…
Cancel
Save