| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | $this->createTable('token', [ |
||
| 16 | 'id' => $this->primaryKey(), |
||
| 17 | |||
| 18 | 'recipient' => $this->string()->notNull(), |
||
| 19 | 'token' => $this->string()->notNull(), |
||
| 20 | 'type' => $this->string(24)->notNull(), |
||
| 21 | |||
| 22 | 'data' => $this->json(), |
||
| 23 | |||
| 24 | 'delivery_count' => $this->integer()->unsigned()->defaultValue(0), |
||
| 25 | 'verify_count' => $this->integer()->unsigned()->defaultValue(0), |
||
| 26 | |||
| 27 | 'created_at' => $this->timestamp()->notNull()->defaultExpression('current_timestamp'), |
||
| 28 | ]); |
||
| 39 |