Skip to content

Commit c252437

Browse files
authoredJun 29, 2021
Merge pull request #403 from dis-moi/fix/migrationsLocale
fix(migration): locale fr
2 parents 64e277a + 313e0c3 commit c252437

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎migrations/Version20210519132610.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@ final class Version20210519132610 extends AbstractMigration
1414
{
1515
public function up(Schema $schema): void
1616
{
17-
$localDefault = \Locale::getDefault();
18-
1917
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
2018

2119
$this->addSql('ALTER TABLE contributor ADD locale VARCHAR(255) DEFAULT NULL');
2220
$this->addSql('ALTER TABLE notice ADD locale VARCHAR(255) DEFAULT NULL');
23-
$this->addSql("UPDATE contributor SET locale = '{$localDefault}' WHERE locale is NULL");
21+
$this->addSql("UPDATE contributor SET locale = 'fr' WHERE locale is NULL");
2422
}
2523

2624
public function down(Schema $schema): void

0 commit comments

Comments
 (0)
Please sign in to comment.