From 313e0c337c85e1e4852542d0416897b269392131 Mon Sep 17 00:00:00 2001 From: Gregoire Date: Fri, 25 Jun 2021 09:17:14 +0200 Subject: [PATCH] fix(migration): locale fr --- migrations/Version20210519132610.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/migrations/Version20210519132610.php b/migrations/Version20210519132610.php index 1ad66ef..a07992a 100644 --- a/migrations/Version20210519132610.php +++ b/migrations/Version20210519132610.php @@ -14,13 +14,11 @@ final class Version20210519132610 extends AbstractMigration { public function up(Schema $schema): void { - $localDefault = \Locale::getDefault(); - $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('ALTER TABLE contributor ADD locale VARCHAR(255) DEFAULT NULL'); $this->addSql('ALTER TABLE notice ADD locale VARCHAR(255) DEFAULT NULL'); - $this->addSql("UPDATE contributor SET locale = '{$localDefault}' WHERE locale is NULL"); + $this->addSql("UPDATE contributor SET locale = 'fr' WHERE locale is NULL"); } public function down(Schema $schema): void