WIP 2025-03-17 RML Billing

This commit is contained in:
Frank Schubert
2025-03-18 02:10:53 +01:00
parent 361fc5ee9a
commit 2a7e7f1724
7 changed files with 877 additions and 128 deletions
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PreorderBillingAddOaid extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("PreorderBilling");
$table->addColumn("oaid", "string", ["null" => false, "limit" => 64, "after" => "preorder_id"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("PreorderBilling");
$table->removeColumn("oaid");
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}