vc text short

This commit is contained in:
andrey
2021-07-13 13:45:44 +03:00
parent fef3f26ae3
commit ca64e6741f
5 changed files with 39 additions and 2 deletions

View File

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