Files
thetool/db/migrations/20231018104817_preordercampaigin_add_banned_rimo_fcp.php
2023-10-18 13:42:32 +02:00

32 lines
816 B
PHP

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