We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64e277a + 313e0c3 commit c252437Copy full SHA for c252437
migrations/Version20210519132610.php
@@ -14,13 +14,11 @@ final class Version20210519132610 extends AbstractMigration
14
{
15
public function up(Schema $schema): void
16
17
- $localDefault = \Locale::getDefault();
18
-
19
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
20
21
$this->addSql('ALTER TABLE contributor ADD locale VARCHAR(255) DEFAULT NULL');
22
$this->addSql('ALTER TABLE notice ADD locale VARCHAR(255) DEFAULT NULL');
23
- $this->addSql("UPDATE contributor SET locale = '{$localDefault}' WHERE locale is NULL");
+ $this->addSql("UPDATE contributor SET locale = 'fr' WHERE locale is NULL");
24
}
25
26
public function down(Schema $schema): void
0 commit comments