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