Skip to content

Commit

Permalink
更新生成码的任务流程 #2688
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Feb 6, 2017
1 parent f8c0be5 commit 42ec86f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/Migration/V20170206104939CreateQueueJobsTable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace Miaoxing\App\Migration;

use Miaoxing\Plugin\BaseMigration;

class V20170206104939CreateQueueJobsTable extends BaseMigration
{
/**
* {@inheritdoc}
*/
public function up()
{
$this->schema->table('queue_jobs')
->bigInt('id')->autoIncrement()
->string('queue', 32)
->longText('payload')
->tinyInt('attempts')
->timestamp('reserved_at')
->timestamp('available_at')
->timestamp('created_at')
->primary('id')
->index(['queue', 'reserved_at'])
->exec();
}

/**
* {@inheritdoc}
*/
public function down()
{
$this->schema->dropIfExists('queue_jobs');
}
}

0 comments on commit 42ec86f

Please sign in to comment.