Files
thetool/db/migrations/20250328181907_preorder_billing_add_extref.php
Frank Schubert 17405c8c5d PreorderBilling
2025-03-31 13:50:49 +02:00

34 lines
866 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PreorderBillingAddExtref extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('PreorderBilling');
$table->addColumn("extref", "string", ["null" => true, "default" => null, "limit" => 1024, "after" => "adb_wohneinheit_id"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('PreorderBilling');
$table->removeColumn("extref");
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}