Merge pull request #43 from apuc/add_user_card_social_links
social links on user card
This commit is contained in:
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Class m200805_113316_add_columns_links_to_user_card_table
|
||||
*/
|
||||
class m200805_113316_add_columns_links_to_user_card_table extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->addColumn('user_card', 'link_vk', $this->string(255));
|
||||
$this->addColumn('user_card', 'link_telegram', $this->string(255));
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
$this->dropColumn('user_card', 'link_vk');
|
||||
$this->dropColumn('user_card', 'link_telegram');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user