Contractqueue changes

This commit is contained in:
Frank Schubert
2024-08-01 19:15:44 +02:00
parent ffa5497759
commit 7f3075dae6
5 changed files with 117 additions and 26 deletions

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ContractqueueAddVatgroupId extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Contractqueue");
$table->addColumn("vatgroup_id", "integer", ["null" => false, "after" => "price_nbe"]);
$table->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}