From dab7204ac2f44094a21558925562cc67563e3005 Mon Sep 17 00:00:00 2001 From: Wilco Louwerse Date: Mon, 12 Feb 2024 10:42:53 +0100 Subject: [PATCH] Fix last version migration to set version fields that are null to: 0.0.0 --- api/migrations/Version20240109135300.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/migrations/Version20240109135300.php b/api/migrations/Version20240109135300.php index 60a5facc6..b0b86a715 100644 --- a/api/migrations/Version20240109135300.php +++ b/api/migrations/Version20240109135300.php @@ -19,17 +19,29 @@ public function getDescription(): string public function up(Schema $schema): void { + $this->addSql('UPDATE action SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE action ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE application SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE application ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE collection_entity SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE collection_entity ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE cronjob SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE cronjob ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE endpoint SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE endpoint ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE entity SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE entity ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE gateway SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE gateway ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE mapping SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE mapping ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE organization SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE organization ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE security_group SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE security_group ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE template SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE template ALTER version SET DEFAULT \'0.0.0\''); + $this->addSql('UPDATE "user" SET version = \'0.0.0\' WHERE version IS NULL'); $this->addSql('ALTER TABLE "user" ALTER version SET DEFAULT \'0.0.0\''); }