diff --git a/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/Version20180614113404.php b/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/Version20180614113404.php new file mode 100644 index 0000000000..bd360623df --- /dev/null +++ b/lib/Alchemy/Phrasea/Setup/DoctrineMigrations/Version20180614113404.php @@ -0,0 +1,28 @@ +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%"'); + } + + /** + * @param Schema $schema + */ + public function doDownSql(Schema $schema) + { + } +}