Files
thetool/db/migrations/20240108200100_hausnummer_add_index_rimoid.php
2024-01-08 21:29:32 +01:00

32 lines
658 B
PHP

<?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") {
}
}
}