luyadev/luya-module-admin

View on GitHub
src/migrations/m141203_121042_admin_lang.php

Summary

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


use yii\db\Migration;

class m141203_121042_admin_lang extends Migration
{
    public function safeUp()
    {
        $this->createTable('{{%admin_lang}}', [
            'id' => $this->primaryKey(),
            'name' => $this->string(255),
            'short_code' => $this->string(15),
            'is_default' => $this->boolean()->defaultValue(false),
        ]);
    }

    public function safeDown()
    {
        $this->dropTable('{{%admin_lang}}');
    }
}