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

28 lines
645 B
PHP

<?php
/**
* @link https://github.com/zhuravljov/yii2-queue
* @copyright Copyright (c) 2017 Roman Zhuravlev
* @license http://opensource.org/licenses/BSD-3-Clause
*/
use yii\db\Migration;
/**
* Example of migration for queue message storage
*
* @author Roman Zhuravlev <zhuravljov@gmail.com>
*/
class M170307170300Later extends Migration
{
public $tableName = '{{%queue}}';
public function up()
{
$this->addColumn($this->tableName, 'timeout', $this->integer()->defaultValue(0)->notNull()->after('created_at'));
}
public function down()
{
$this->dropColumn($this->tableName, 'timeout');
}
}