From 7a3b699a51bc7f14a92ddda000a38a14aa9d3746 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 11 Nov 2025 18:33:25 +0100 Subject: [PATCH] added migration to resize oaid in Building/Termination --- ...20251111171837_termination_resize_code.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 db/migrations/20251111171837_termination_resize_code.php diff --git a/db/migrations/20251111171837_termination_resize_code.php b/db/migrations/20251111171837_termination_resize_code.php new file mode 100644 index 000000000..6507c09d6 --- /dev/null +++ b/db/migrations/20251111171837_termination_resize_code.php @@ -0,0 +1,36 @@ +getEnvironment() == "thetool") { + $table = $this->table("Termination"); + $table->changeColumn("code", "string", ["length" => 64, "null" => true, "default" => null]); + $table->update(); + + $table = $this->table("Building"); + $table->changeColumn("code", "string", ["length" => 64, "null" => true, "default" => null]); + $table->changeColumn("oaid", "string", ["length" => 255, "null" => true, "default" => null]); + $table->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}