From 1cd9587803372f87377bc4451206784e8fe9fd04 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Fri, 16 May 2025 21:58:47 +0200 Subject: [PATCH 1/2] fixed db name in constr_cons_owner_add_signature --- .../20250515135500_constr_cons_owner_add_signature.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/migrations/20250515135500_constr_cons_owner_add_signature.php b/db/migrations/20250515135500_constr_cons_owner_add_signature.php index a2e1f43b7..c163f7354 100644 --- a/db/migrations/20250515135500_constr_cons_owner_add_signature.php +++ b/db/migrations/20250515135500_constr_cons_owner_add_signature.php @@ -7,7 +7,7 @@ final class ConstrConsOwnerAddSignature extends AbstractMigration { public function up(): void { - if($this->getEnvironment() == "addressdb") { + if($this->getEnvironment() == "thetool") { $ConstructionConsentOwner = $this->table("ConstructionConsentOwner"); $ConstructionConsentOwner->addColumn("signature", "text", ["null" => true]); $ConstructionConsentOwner->addColumn("signature_name", "string", ["limit" => 255, "null" => true]); @@ -19,7 +19,7 @@ final class ConstrConsOwnerAddSignature extends AbstractMigration public function down(): void { - if($this->getEnvironment() == "addressdb") { + if($this->getEnvironment() == "thetool") { $ConstructionConsentOwner = $this->table("ConstructionConsentOwner"); $ConstructionConsentOwner->removeColumn("signature"); $ConstructionConsentOwner->removeColumn("signature_name"); @@ -28,4 +28,4 @@ final class ConstrConsOwnerAddSignature extends AbstractMigration $ConstructionConsentOwner->update(); } } -} \ No newline at end of file +} From 11de49b970c342b70730bcdfd76616a2bc229f55 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Fri, 16 May 2025 21:59:18 +0200 Subject: [PATCH 2/2] Added rimo_deleted field to Wohneinheit --- ...40735_adb_wohneinheit_add_rimo_deleted.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 db/migrations/20250516140735_adb_wohneinheit_add_rimo_deleted.php diff --git a/db/migrations/20250516140735_adb_wohneinheit_add_rimo_deleted.php b/db/migrations/20250516140735_adb_wohneinheit_add_rimo_deleted.php new file mode 100644 index 000000000..09c009451 --- /dev/null +++ b/db/migrations/20250516140735_adb_wohneinheit_add_rimo_deleted.php @@ -0,0 +1,31 @@ +getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + $table = $this->table('Wohneinheit'); + $table->addColumn("rimo_deleted", "integer", ["null" => false, "default" => 0, "length" => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY, "after" => "rimo_op_state"]); + $table->update(); + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + $this->table('Wohneinheit')->removeColumn("rimo_deleted")->save(); + } + } +}