From b7626a2bdd78b4be0f6e9f5b6e47871eb330a6d9 Mon Sep 17 00:00:00 2001 From: Dries Vanspauwen Date: Tue, 14 Nov 2023 11:18:45 +0000 Subject: [PATCH] fix migration noshow --- migrations/Version20231114111803.php | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 migrations/Version20231114111803.php diff --git a/migrations/Version20231114111803.php b/migrations/Version20231114111803.php new file mode 100644 index 0000000000..277e3a8a2e --- /dev/null +++ b/migrations/Version20231114111803.php @@ -0,0 +1,32 @@ +abortIf($this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.'); + + $this->addSql('ALTER TABLE shop_reservations DROP noshow'); + } + + /** + * @param \Doctrine\DBAL\Schema\Schema $schema + * @return void + */ + public function down(Schema $schema) : void + { + $this->throwIrreversibleMigrationException(); + } +}