This commit is contained in:
Luca Haid
2025-05-06 15:58:38 +02:00
parent dd5feecde1
commit 6993c530dc

View File

@@ -8,18 +8,18 @@ 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();
$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') {
$this->table('ConstructionConsent');
$this->removeColumn('netzgebiet_id');
$this->update();
$table = $this->table('ConstructionConsent');
$table->removeColumn('netzgebiet_id');
$table->update();
}
}
}