From 678709e529594a5c9420fe918e8788f3bf4364bb Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 18 Jul 2024 12:39:28 +0200 Subject: [PATCH] Added commercial contact for addresses --- ...544_address_link_add_commercialcontact.php | 44 +++++++++++++++++++ lang/de.php | 1 + 2 files changed, 45 insertions(+) create mode 100644 db/migrations/20240718102544_address_link_add_commercialcontact.php diff --git a/db/migrations/20240718102544_address_link_add_commercialcontact.php b/db/migrations/20240718102544_address_link_add_commercialcontact.php new file mode 100644 index 000000000..16c6cfeb1 --- /dev/null +++ b/db/migrations/20240718102544_address_link_add_commercialcontact.php @@ -0,0 +1,44 @@ +getEnvironment() == "thetool") { + $addresslink = $this->table("AddressLink"); + $addresslink->changeColumn("type", "enum", ["null" => false, "values" => "billing,employee,customer,contact,techcontact,commercialcontact"]); + $addresslink->update(); + + $addresstype = $this->table("Addresstype"); + $addresstype->changeColumn("type", "enum", ["null" => false, "values" => "systemowner,productowner,netowner,salespartner,pipeworker,lineworker,pipeplanner,lineplanner,netoperator,supplier,billing,employee,customer,contact,techcontact,commercialcontact"]); + $addresstype->save(); + + + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + + $addresstype = $this->table("Addresstype"); + $addresstype->changeColumn("type", "enum", ["null" => false, "values" => "systemowner,productowner,netowner,salespartner,pipeworker,lineworker,pipeplanner,lineplanner,netoperator,supplier,billing,employee,customer,contact,techcontact"]); + $addresstype->save(); + + $addresslink = $this->table("AddressLink"); + $addresslink->changeColumn("type", "enum", ["null" => false, "values" => "billing,employee,customer,contact,techcontact"]); + $addresslink->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } +} diff --git a/lang/de.php b/lang/de.php index 5689fb64a..ee60275b6 100644 --- a/lang/de.php +++ b/lang/de.php @@ -22,6 +22,7 @@ $l['techcontact'] = "Technischer Kontakt"; $l['billing'] = "Rechnungsadresse"; $l['business'] = "Business"; $l['residential'] = "Residential"; +$l['commercialcontact'] = "Kommerzieller Ansprechpartner"; $l['created-b'] = "Erstellt"; $l['planned-b'] = "Rohrplan vorhanden";