From ef1db750da445f4f8840487e080c96f1cd0263a9 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 5 Aug 2025 15:01:29 +0200 Subject: [PATCH] Add PreorderCtag Migration --- ...0250805111210_preorder_ctag_add_extref.php | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 db/migrations/20250805111210_preorder_ctag_add_extref.php diff --git a/db/migrations/20250805111210_preorder_ctag_add_extref.php b/db/migrations/20250805111210_preorder_ctag_add_extref.php new file mode 100644 index 000000000..6e70b835d --- /dev/null +++ b/db/migrations/20250805111210_preorder_ctag_add_extref.php @@ -0,0 +1,35 @@ +getEnvironment() == "thetool") { + $table = $this->table("PreorderCtag"); + $table->addColumn("ext_id", "string", ["null" => true, "default" => null, "length" => 255, "after" => "service_type"]); + $table->addColumn("ext_status", "string", ["null" => true, "default" => null, "length" => 255, "after" => "ext_id"]); + $table->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + $this->table("PreorderCtag") + ->removeColumn("ext_id") + ->removeColumn("ext_status") + ->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}