1
0
Fork 0
mirror of https://github.com/janickiy/yii2-nomer synced 2025-02-12 10:01:52 +00:00
yii2-nomer/migrations/m170620_133102_add_sms_count_to_reposts.php
2020-02-05 06:34:26 +03:00

29 lines
541 B
PHP

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