Browse Source

Migration remove rbac

master
Egorka 7 years ago
parent
commit
3c1d9ffe0a
  1. 30
      console/migrations/m121026_055200_exec_rbac_migrations.php

30
console/migrations/m121026_055200_exec_rbac_migrations.php

@ -1,30 +0,0 @@
<?php
use yii\db\Migration;
require (Yii::getAlias('@yii/rbac/migrations/m140506_102106_rbac_init.php'));
require (Yii::getAlias('@yii/rbac/migrations/m170907_052038_rbac_add_index_on_auth_assignment_user_id.php'));
/**
* Class m180126_050850_exec_rbac_migrations
*/
class m121026_055200_exec_rbac_migrations extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
(new m140506_102106_rbac_init(['db' => $this->db]))->up();
(new m170907_052038_rbac_add_index_on_auth_assignment_user_id(['db' => $this->db]))->up();
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
(new m170907_052038_rbac_add_index_on_auth_assignment_user_id(['db' => $this->db]))->up();
(new m140506_102106_rbac_init(['db' => $this->db]))->up();
}
}
Loading…
Cancel
Save