From cc033d5be7973a2d940dccedead8105b9389ae8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 9 Apr 2023 00:08:08 +0200 Subject: [PATCH] Properly escape users and groups table name for newer MySQL version --- migrations/Version20230408213957.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/migrations/Version20230408213957.php b/migrations/Version20230408213957.php index bddd8826..1457334b 100644 --- a/migrations/Version20230408213957.php +++ b/migrations/Version20230408213957.php @@ -21,14 +21,14 @@ final class Version20230408213957 extends AbstractMultiPlatformMigration public function mySQLUp(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - $this->addSql('ALTER TABLE groups CHANGE permissions_data permissions_data LONGTEXT DEFAULT \'[]\' NOT NULL COMMENT \'(DC2Type:json)\''); - $this->addSql('ALTER TABLE log CHANGE level level TINYINT(4) NOT NULL'); + $this->addSql('ALTER TABLE `groups` CHANGE permissions_data permissions_data LONGTEXT DEFAULT \'[]\' NOT NULL COMMENT \'(DC2Type:json)\''); + $this->addSql('ALTER TABLE `log` CHANGE level level TINYINT(4) NOT NULL'); if ($this->doesFKExists('projects', 'FK_11074E9A727ACA70')){ $this->addSql('ALTER TABLE projects DROP FOREIGN KEY FK_11074E9A727ACA70'); } $this->addSql('ALTER TABLE projects CHANGE description description LONGTEXT DEFAULT \'\' NOT NULL'); - $this->addSql('ALTER TABLE users CHANGE permissions_data permissions_data LONGTEXT DEFAULT \'[]\' NOT NULL COMMENT \'(DC2Type:json)\', CHANGE saml_user saml_user TINYINT(1) NOT NULL, CHANGE about_me about_me LONGTEXT DEFAULT \'\' NOT NULL'); - $this->addSql('ALTER TABLE log CHANGE level level TINYINT NOT NULL COMMENT \'(DC2Type:tinyint)\''); + $this->addSql('ALTER TABLE `users` CHANGE permissions_data permissions_data LONGTEXT DEFAULT \'[]\' NOT NULL COMMENT \'(DC2Type:json)\', CHANGE saml_user saml_user TINYINT(1) NOT NULL, CHANGE about_me about_me LONGTEXT DEFAULT \'\' NOT NULL'); + $this->addSql('ALTER TABLE `log` CHANGE level level TINYINT NOT NULL COMMENT \'(DC2Type:tinyint)\''); } public function mySQLDown(Schema $schema): void