| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Version20170829164640 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 | $this->addSql('UPDATE lexik_trans_unit_translations SET content = REPLACE(content, \'{{ \', \'%\')'); |
||
| 20 | $this->addSql('UPDATE lexik_trans_unit_translations SET content = REPLACE(content, \' }}\', \'%\')'); |
||
| 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 | } |
||
| 31 |