Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class Version20190111100527 extends AbstractMigration |
||
12 | { |
||
13 | /** |
||
14 | * @param Schema $schema |
||
15 | */ |
||
16 | public function up(Schema $schema) |
||
17 | { |
||
18 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
19 | |||
20 | $this->addSql('ALTER TABLE event__reviews ADD keywords VARCHAR(255) DEFAULT NULL'); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param Schema $schema |
||
25 | */ |
||
26 | public function down(Schema $schema) |
||
27 | { |
||
28 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); |
||
29 | |||
30 | $this->addSql('ALTER TABLE event__reviews DROP keywords'); |
||
31 | } |
||
33 |