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

32 lines
857 B
PHP

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