26 lines
724 B
PHP
26 lines
724 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class ConstructionConsentAddNetzgebietId extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
if ($this->getEnvironment() === 'thetool') {
|
|
$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') {
|
|
$table = $this->table('ConstructionConsent');
|
|
$table->removeColumn('netzgebiet_id');
|
|
$table->update();
|
|
}
|
|
}
|
|
}
|