Merge branch 'master' into preorderstatus-neu

This commit is contained in:
Frank Schubert
2024-07-18 13:06:29 +02:00
15 changed files with 1578 additions and 1264 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ContractLinkChangeChangeactionToVarchar extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("ContractLink");
$table->changeColumn("change_action", "string", ["null" => true, "default" => null, "limit" => 64]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}
@@ -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") {
}
}
}