luyadev/luya-module-admin

View on GitHub
src/migrations/m190327_140741_auth_pool_field.php

Summary

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

use yii\db\Migration;

/**
 * Class m190327_140741_auth_pool_field
 */
class m190327_140741_auth_pool_field extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{%admin_auth}}', 'pool', $this->string());
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{%admin_auth}}', 'pool');
    }
}