Merge branch 'fronkdev' into 'master'

Add PreorderCtag Migration

See merge request fronk/thetool!1604
This commit is contained in:
Frank Schubert
2025-08-05 13:01:55 +00:00

View File

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