luyadev/luya-module-admin

View on GitHub
src/migrations/m161219_150240_admin_lang_soft_delete.php

Summary

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

use yii\db\Migration;

class m161219_150240_admin_lang_soft_delete extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%admin_lang}}', 'is_deleted', $this->boolean()->defaultValue(false));
    }

    public function safeDown()
    {
        $this->dropColumn('{{%admin_lang}}', 'is_deleted');
    }
}