mirror of
https://github.com/janickiy/yii2-nomer
synced 2025-03-09 15:39:59 +00:00
add files to project
This commit is contained in:
commit
5cac498444
3729 changed files with 836998 additions and 0 deletions
28
migrations/M170307170300Later.php
Normal file
28
migrations/M170307170300Later.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?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');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue