Added new Rimo import script(s)

This commit is contained in:
Frank Schubert
2024-01-08 21:29:32 +01:00
parent 9ebad06205
commit 9390f12c45
6 changed files with 421 additions and 55 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class HausnummerAddIndexRimoid extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
$table = $this->table("Hausnummer");
$table->addIndex("rimo_id", ["limit" => 18]);
$table->update();
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
}
if($this->getEnvironment() == "addressdb") {
}
}
}