This commit is contained in:
Luca Haid
2025-05-06 15:57:33 +02:00
parent daddee1b8f
commit dd5feecde1
5 changed files with 118 additions and 2 deletions
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class ConstructionConsentAddNetzgebietId extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() === 'thetool') {
$this->table('ConstructionConsent');
$this->addColumn('netzgebiet_id', 'integer', ['limit' => 11, 'null' => true, 'default' => null, 'after' => 'rimo_gn']);
$this->update();
}
}
public function down(): void
{
if ($this->getEnvironment() === 'thetool') {
$this->table('ConstructionConsent');
$this->removeColumn('netzgebiet_id');
$this->update();
}
}
}