user card level

This commit is contained in:
andrey committed 2021-06-30 17:30:53 +03:00
1 parent 8c9b5f04d4
commit 74ada385f5
5 files changed
+70 -3

No files matched your search

@@ -0,0 +1,25 @@
<?php
use yii\db\Migration;
/**
* Handles adding columns to table `{{%user_card}}`.
*/
class m210630_140410_add_level_column_to_user_card_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%user_card}}', 'level', $this->integer(1)->defaultValue(2));
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('{{%user_card}}', 'level');
}
}