Skip to content

Commit fc8b9ae

Browse files
author
Jonas De Keukelaere
committed
Fix user migration
1 parent 9f93000 commit fc8b9ae

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

migrations/Version20210413143447.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,25 @@
1212
*/
1313
final class Version20210413143447 extends AbstractMigration
1414
{
15-
public function getDescription() : string
15+
public function getDescription(): string
1616
{
17-
return 'Set up the user table for MySQL';
17+
return '';
1818
}
1919

20-
public function up(Schema $schema) : void
20+
public function up(Schema $schema): void
2121
{
2222
// this up() migration is auto-generated, please modify it to your needs
23-
$this->addSql('CREATE TABLE `user` (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) DEFAULT NULL, enabled TINYINT(1) NOT NULL, confirmation_token VARCHAR(255) DEFAULT NULL, confirmation_requested_at DATETIME DEFAULT NULL, confirmed_at DATETIME DEFAULT NULL, password_reset_token VARCHAR(255) DEFAULT NULL, password_requested_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
23+
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, password VARCHAR(255) DEFAULT NULL, enabled TINYINT(1) NOT NULL, confirmation_token VARCHAR(255) DEFAULT NULL, confirmation_requested_at DATETIME DEFAULT NULL, confirmed_at DATETIME DEFAULT NULL, password_reset_token VARCHAR(255) DEFAULT NULL, password_requested_at DATETIME DEFAULT NULL, email VARCHAR(180) NOT NULL, roles JSON NOT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
2424
}
2525

26-
public function down(Schema $schema) : void
26+
public function down(Schema $schema): void
2727
{
2828
// this down() migration is auto-generated, please modify it to your needs
29-
$this->addSql('DROP TABLE `user`');
29+
$this->addSql('DROP TABLE user');
30+
}
31+
32+
public function isTransactional(): bool
33+
{
34+
return false;
3035
}
3136
}

0 commit comments

Comments
 (0)