Files
thetool/db/migrations/20250506150000_construction_consent_add_netzgebiet_id.php
Luca Haid 6993c530dc -
2025-05-06 15:58:38 +02:00

26 lines
724 B
PHP

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