You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// this up() migration is auto-generated, please modify it to your needs
23
+
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
24
+
25
+
$this->addSql('DROP INDEX UNIQ_957A6479D0494586 ON fos_user');
26
+
$this->addSql('ALTER TABLE fos_user CHANGE user_identifier unique_identifier VARCHAR(255) NOT NULL');
27
+
$this->addSql('CREATE UNIQUE INDEX UNIQ_957A64796BD2BEA0 ON fos_user (unique_identifier)');
28
+
}
29
+
30
+
publicfunctiondown(Schema$schema) : void
31
+
{
32
+
// this down() migration is auto-generated, please modify it to your needs
33
+
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
34
+
35
+
$this->addSql('DROP INDEX UNIQ_957A64796BD2BEA0 ON fos_user');
36
+
$this->addSql('ALTER TABLE fos_user CHANGE unique_identifier user_identifier VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`');
37
+
$this->addSql('CREATE UNIQUE INDEX UNIQ_957A6479D0494586 ON fos_user (user_identifier)');
0 commit comments