| Total Complexity | 2 |
| Total Lines | 77 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class m180509_092225_create_articles_table extends MultilanguageMigration |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | public function safeUp() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function safeDown() |
||
| 63 | { |
||
| 64 | $this->dropIndex( |
||
| 65 | 'idx-articles-alias', |
||
| 66 | 'articles' |
||
| 67 | ); |
||
| 68 | |||
| 69 | $this->dropIndex( |
||
| 70 | 'idx-articles-active', |
||
| 71 | 'articles' |
||
| 72 | ); |
||
| 73 | |||
| 74 | $this->dropForeignKey( |
||
| 75 | 'fk-articles-pageId', |
||
| 76 | 'articles' |
||
| 77 | ); |
||
| 78 | |||
| 79 | $this->dropIndex( |
||
| 80 | 'idx-articles-pageId', |
||
| 81 | 'articles' |
||
| 82 | ); |
||
| 83 | |||
| 84 | $this->dropMultiLanguageTable('articles'); |
||
| 85 | } |
||
| 87 |