Added Lieboch to rimo api import

This commit is contained in:
Frank Schubert
2024-02-28 15:27:42 +01:00
parent 6db1055c6b
commit a0754d8c5d
8 changed files with 103 additions and 12 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class NetzgebietAddOptions extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$table = $this->table("Netzgebiet");
$table->addColumn("options", "json", ["null" => true,"default" => null, "after" => "unit_create_oaid"]);
$table->update();
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$this->table("Netzgebiet")->removeColumn("options")->save();
}
}
}