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