Merge branch 'fronkdev' into 'master'

Added Lieboch to rimo api import

See merge request fronk/thetool!272
This commit is contained in:
Frank Schubert
2024-02-28 14:28:37 +00:00
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();
}
}
}