luyadev/luya-module-admin

View on GitHub
src/migrations/m150323_125407_admin_auth.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php


use yii\db\Migration;

class m150323_125407_admin_auth extends Migration
{
    public function up()
    {
        $this->createTable('{{%admin_auth}}', [
            'id' => $this->primaryKey(),
            'alias_name' => $this->string(60)->notNull(),
            'module_name' => $this->string(60)->notNull(),
            'is_crud' => $this->boolean()->defaultValue(false),
            'route' => $this->string(200),
            'api' => $this->string(200),
        ]);
    }

    public function down()
    {
        $this->dropTable('{{%admin_auth}}');
    }
}