Files
thetool/db/migrations/20250226143311_construction_consent_contact_add_owner.php
2025-02-26 15:38:54 +01:00

32 lines
779 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ConstructionConsentContactAddOwner extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("ConstructionConsentContact");
$table->changeColumn("type", "enum", ["null" => false, "values" => ["contact", "property_manager", "electrician", "other", "owner"]]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}