Files
thetool/db/migrations/20250108173124_construction_consent_termination_id_null.php
2025-01-10 12:35:25 +01:00

32 lines
718 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ConstructionConsentTerminationIdNull extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$cc = $this->table("ConstructionConsent");
$cc->changeColumn("termination_id", "integer", ["null" => true, "default" => null]);
$cc->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}