From 0596633a2990fe144d504729d61a16075ab92143 Mon Sep 17 00:00:00 2001 From: Glandos Date: Sun, 9 Jul 2023 15:29:50 +0200 Subject: [PATCH] Keep escaped table name while migrating Fix #6709 --- app/DoctrineMigrations/Version20221221092957.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/DoctrineMigrations/Version20221221092957.php b/app/DoctrineMigrations/Version20221221092957.php index 5137f85fc..438407360 100644 --- a/app/DoctrineMigrations/Version20221221092957.php +++ b/app/DoctrineMigrations/Version20221221092957.php @@ -12,7 +12,7 @@ final class Version20221221092957 extends WallabagMigration { public function up(Schema $schema): void { - $userTable = $this->getTable('user', true); + $userTable = $this->getTable('user'); switch ($this->connection->getDatabasePlatform()->getName()) { case 'sqlite': $this->addSql('CREATE TEMPORARY TABLE __temp__wallabag_user AS SELECT id, username, username_canonical, email, email_canonical, enabled, password, last_login, password_requested_at, name, created_at, updated_at, authCode, emailTwoFactor, salt, confirmation_token, roles, googleAuthenticatorSecret, backupCodes FROM ' . $userTable); @@ -37,7 +37,7 @@ final class Version20221221092957 extends WallabagMigration public function down(Schema $schema): void { - $userTable = $this->getTable('user', true); + $userTable = $this->getTable('user'); switch ($this->connection->getDatabasePlatform()->getName()) { case 'sqlite': $this->addSql('CREATE TEMPORARY TABLE __temp__wallabag_user AS SELECT id, username, username_canonical, email, email_canonical, enabled, salt, password, last_login, confirmation_token, password_requested_at, roles, name, created_at, updated_at, authCode, googleAuthenticatorSecret, backupCodes, emailTwoFactor FROM ' . $userTable);