From fb79966f9103d02d8ed46a727584f202254cc662 Mon Sep 17 00:00:00 2001 From: aina-esokia Date: Wed, 11 Jul 2018 16:50:23 +0400 Subject: [PATCH] update column guest also for deleted guest account --- .../Phrasea/Setup/DoctrineMigrations/Version20180614113404.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/Version20180614113404.php b/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/Version20180614113404.php index bd360623df..2f411dfd0c 100644 --- a/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/Version20180614113404.php +++ b/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/Version20180614113404.php @@ -16,7 +16,7 @@ class Version20180614113404 extends AbstractMigration { $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.'); - $this->addSql('UPDATE Users SET guest = 1 WHERE login LIKE "guest%"'); + $this->addSql('UPDATE Users SET guest = 1 WHERE login LIKE "guest%" OR login LIKE "(#deleted_guest%"'); } /**