Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function migrate() |
||
43 | { |
||
44 | $this->msg('Remove incompatible index tables', 0); |
||
45 | $this->status(''); |
||
46 | |||
47 | $schema = $this->getSchema('db-product'); |
||
48 | |||
49 | $table = 'mshop_index_text'; |
||
50 | $this->msg(sprintf('Checking table "%1$s"', $table), 1); |
||
51 | |||
52 | if ($schema->tableExists($table) === true |
||
53 | && $schema->columnExists($table, 'url') === false) { |
||
54 | $this->execute('DROP TABLE "mshop_index_text"'); |
||
55 | IndexRebuild::forceExecute(); |
||
56 | |||
57 | $this->status('done'); |
||
58 | } else { |
||
59 | $this->status('OK'); |
||
60 | } |
||
63 |