mirror of
https://github.com/janickiy/yii2-nomer
synced 2025-02-15 03:11:58 +00:00
30 lines
653 B
PHP
30 lines
653 B
PHP
|
<?php
|
||
|
|
||
|
use yii\db\Migration;
|
||
|
|
||
|
class m170629_145257_add_fields_to_wallet extends Migration
|
||
|
{
|
||
|
public function up()
|
||
|
{
|
||
|
$this->addColumn(\app\models\Wallet::tableName(), "phone", $this->string(11));
|
||
|
$this->addColumn(\app\models\Wallet::tableName(), "comment", $this->text());
|
||
|
}
|
||
|
|
||
|
public function down()
|
||
|
{
|
||
|
$this->dropColumn(\app\models\Wallet::tableName(), "phone");
|
||
|
$this->dropColumn(\app\models\Wallet::tableName(), "comment");
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
// Use safeUp/safeDown to run migration code within a transaction
|
||
|
public function safeUp()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function safeDown()
|
||
|
{
|
||
|
}
|
||
|
*/
|
||
|
}
|