Rimo FCP import draft

This commit is contained in:
Frank Schubert
2025-03-26 14:07:14 +01:00
parent e3a6d494ef
commit 50d24faf9f
6 changed files with 1626 additions and 0 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AdbHausnummerAddFcpId extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$table = $this->table("Hausnummer");
$table->addColumn("fcp_id", "integer", ["null" => true, "default" => null, "after" => "rimo_op_state"]);
$table->save();
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$this->table("Hausnummer")->removeColumn("fcp_id")->save();
}
}
}