Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | public function up() |
||
8 | { |
||
9 | $tableOptions = null; |
||
10 | if ($this->db->driverName === 'mysql') { |
||
11 | $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'; |
||
12 | } |
||
13 | $this->createTable('{{%queue}}', [ |
||
14 | 'id' => $this->primaryKey(), |
||
15 | 'queue_id' => $this->integer()->notNull()->comment('队列id'), |
||
16 | 'catalog' => $this->string()->comment('类别'), |
||
17 | 'name' => $this->string()->notNull()->comment('任务名称'), |
||
18 | 'description' => $this->text()->comment('详请信息'), |
||
19 | 'log' => $this->text()->comment('错误日志'), |
||
20 | 'exec_time' => $this->integer()->comment('执行时间'), |
||
21 | 'created_at' => $this->integer()->comment('队列创建时间'), |
||
22 | 'updated_at' => $this->integer()->comment('队列执行时间'), |
||
23 | ], $tableOptions); |
||
24 | } |
||
25 | |||
31 |