Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function up() |
||
11 | { |
||
12 | $this->createIndex('vote_target_user_idx', '{{%vote}}', ['entity', 'target_id', 'user_id'], false); |
||
13 | $this->alterColumn('{{%vote}}', 'value', $this->boolean()->notNull()); |
||
14 | |||
15 | //TODO: check these command and fix migration |
||
16 | //$this->execute('ALTER TABLE vote ALTER COLUMN value TYPE boolean USING CASE value WHEN 0 THEN false ELSE true END'); |
||
17 | } |
||
18 | |||
25 |
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.