From 577ea6dd6d952bd4baf3bd1ca1e30efbaba51c2a Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 4 Feb 2025 13:58:17 +0100 Subject: [PATCH] increasing varchar sizes for ConstructionConsent tables --- ..._consent_project_change_varchar_length.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 db/migrations/20250204125214_construction_consent_project_change_varchar_length.php diff --git a/db/migrations/20250204125214_construction_consent_project_change_varchar_length.php b/db/migrations/20250204125214_construction_consent_project_change_varchar_length.php new file mode 100644 index 000000000..c600fcd17 --- /dev/null +++ b/db/migrations/20250204125214_construction_consent_project_change_varchar_length.php @@ -0,0 +1,39 @@ +getEnvironment() == "thetool") { + $ccp = $this->table("ConstructionConsentProject"); + $ccp->changeColumn("sender_name", "string", ["null" => false, "limit" => 255]); + $ccp->changeColumn("sender_email", "string", ["null" => false, "limit" => 255]); + $ccp->changeColumn("sender_reply_to", "string", ["null" => false, "limit" => 255]); + $ccp->changeColumn("email", "string", ["null" => false, "limit" => 255]); + $ccp->changeColumn("phone", "string", ["null" => false, "limit" => 255]); + $ccp->update(); + + $ccj = $this->table("ConstructionConsentJournal"); + $ccj->changeColumn("text", "text", ["null" => false]); + $ccj->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + + } + } +}