1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-03-09 15:39:59 +00:00
yii2-nomer/migrations/m170525_104549_add_site_id_to_payments.php
2020-02-05 06:34:26 +03:00

30 lines
638 B
PHP

<?php
use yii\db\Migration;
class m170525_104549_add_site_id_to_payments extends Migration
{
public function up()
{
$this->addColumn(\app\models\WebmoneyOrder::tableName(), "site_id", $this->smallInteger());
$this->addColumn(\app\models\Payment::tableName(), "site_id", $this->smallInteger());
}
public function down()
{
echo "m170525_104549_add_site_id_to_payments cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}