From 6993c530dcc9a168300d27be034e378198a2276a Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 6 May 2025 15:58:38 +0200 Subject: [PATCH] - --- ...150000_construction_consent_add_netzgebiet_id.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/db/migrations/20250506150000_construction_consent_add_netzgebiet_id.php b/db/migrations/20250506150000_construction_consent_add_netzgebiet_id.php index 6cbc3a798..85d586455 100644 --- a/db/migrations/20250506150000_construction_consent_add_netzgebiet_id.php +++ b/db/migrations/20250506150000_construction_consent_add_netzgebiet_id.php @@ -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(); } } }