Merge branch 'fronkdev2' into 'master'

Added buildingType in ADB hausnummer and rimo import

See merge request fronk/thetool!711
This commit is contained in:
Frank Schubert
2024-11-11 17:37:29 +00:00
3 changed files with 42 additions and 5 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class HausnummerAddRimoType extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$table = $this->table("Hausnummer");
$table->addColumn("rimo_type", "string", ["null" => true, "default" => null, "after" => "rimo_id"]);
$table->update();
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$this->table("Hausnummer")->removeColumn("rimo_type")->save();
}
}
}