Files
thetool/db/migrations/20250124171434_construction_consent_add_date_done.php
2025-01-27 02:12:55 +01:00

34 lines
908 B
PHP

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