Added activation_billing (Nachverrechnen) in PreorderBilling

This commit is contained in:
Frank Schubert
2025-06-25 16:53:47 +02:00
parent 4689ed3dc0
commit aa9ffb090e
7 changed files with 114 additions and 9 deletions
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PreorderAddActivationBilling extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Preorder");
$table->addColumn("activation_billing", "integer", ["default" => 0, "length" => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY, "after" => "order_date"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Preorder");
$table->removeColumn("activation_billing");
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}