-
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user