Files
thetool/db/migrations/20250820104230_preordercampaign_add_fulfillment_citycom_oan.php
2025-08-20 13:03:13 +02:00

32 lines
780 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PreordercampaignAddFulfillmentCitycomOan extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Preordercampaign");
$table->changeColumn("fulfillment", "enum", ["null" => false, "default" => "thetool", "values" => ['thetool', 'thirdparty', 'rimo', 'citycom_oan']]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}