Files
thetool/db/migrations/20250415134656_construction_consent_add_rimo_gn.php
2025-04-15 15:59:54 +02:00

34 lines
865 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ConstructionConsentAddRimoGn extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('ConstructionConsent');
$table->addColumn('rimo_gn', 'string', ['limit' => 64, 'null' => true, 'default' => null, "after" => "gstnr"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('ConstructionConsent');
$table->removeColumn('rimo_gn');
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
}