From 9465cdd60b407694a6d7b46babc4175a725df2e2 Mon Sep 17 00:00:00 2001 From: Cyril Date: Fri, 15 Nov 2019 14:22:21 +0100 Subject: [PATCH] [Hotfix] Fix column name --- src/Migrations/Version20191113170650.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Migrations/Version20191113170650.php b/src/Migrations/Version20191113170650.php index d5751b2..021cb35 100644 --- a/src/Migrations/Version20191113170650.php +++ b/src/Migrations/Version20191113170650.php @@ -24,7 +24,7 @@ final class Version20191113170650 extends AbstractMigration $this->addSql('CREATE TABLE groupmembers (principal_id INT NOT NULL, member_id INT NOT NULL, INDEX IDX_6F15EDAC474870EE (principal_id), INDEX IDX_6F15EDAC7597D3FE (member_id), PRIMARY KEY(principal_id, member_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB'); $this->addSql('ALTER TABLE groupmembers ADD CONSTRAINT FK_6F15EDAC474870EE FOREIGN KEY (principal_id) REFERENCES principals (id)'); $this->addSql('ALTER TABLE groupmembers ADD CONSTRAINT FK_6F15EDAC7597D3FE FOREIGN KEY (member_id) REFERENCES principals (id)'); - $this->addSql('ALTER TABLE principals ADD isMain TINYINT(1) NOT NULL'); + $this->addSql('ALTER TABLE principals ADD is_main TINYINT(1) NOT NULL'); } public function down(Schema $schema): void @@ -32,6 +32,6 @@ final class Version20191113170650 extends AbstractMigration $this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.'); $this->addSql('DROP TABLE groupmembers'); - $this->addSql('ALTER TABLE principals DROP isMain'); + $this->addSql('ALTER TABLE principals DROP is_main'); } }