Files
thetool/db/migrations/20240801152305_contractqueue_add_vatgroup_id.php
2024-08-01 19:15:44 +02:00

32 lines
709 B
PHP

<?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") {
}
}
}