Added commercial contact for addresses

This commit is contained in:
Frank Schubert
2024-07-18 12:39:28 +02:00
parent 13918abb53
commit 678709e529
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddressLinkAddCommercialcontact extends AbstractMigration
{
public function up(): void
{
if($this->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") {
}
}
}

View File

@@ -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";