From 0496afda11a668190892476c2b2dfebaf4ac9ccc Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst Date: Tue, 22 Oct 2024 16:59:15 +0200 Subject: [PATCH] Only drop migration_versions if it exists On new installs this old table is not present, deal with this gracefully. Closes: #129 --- src/Migrations/Version20240410075133.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Migrations/Version20240410075133.php b/src/Migrations/Version20240410075133.php index a7dd2939..12d01130 100644 --- a/src/Migrations/Version20240410075133.php +++ b/src/Migrations/Version20240410075133.php @@ -36,7 +36,7 @@ public function getDescription(): string public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - $this->addSql('DROP TABLE migration_versions'); + $this->addSql('DROP TABLE IF EXISTS migration_versions'); $this->addSql('ALTER TABLE public_key_credential_sources ADD other_ui LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\''); $this->addSql('CREATE UNIQUE INDEX UNIQ_1483A5E95E237E06 ON users (name)'); }