Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | $tableOptions = null; |
||
17 | if ($this->db->driverName === 'mysql') { |
||
18 | $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'; |
||
19 | } |
||
20 | |||
21 | $this->createTable('ym_elastic_spool_item', [ |
||
22 | 'id' => Schema::TYPE_INTEGER . '(10) UNSIGNED NOT NULL AUTO_INCREMENT', |
||
23 | 'model_class' => Schema::TYPE_STRING . '(256) NOT NULL', |
||
24 | 'record_id' => Schema::TYPE_INTEGER . '(10) UNSIGNED NOT NULL', |
||
25 | 'action_code' => Schema::TYPE_STRING . '(32) NOT NULL', |
||
26 | 'is_processing' => 'tinyint(1) NOT NULL', |
||
27 | 'PRIMARY KEY (`id`)', |
||
28 | ], $tableOptions); |
||
29 | } |
||
30 | |||
39 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.