diff --git a/db/migrations/20241205145604_adb_status_add_type.php b/db/migrations/20241205145604_adb_status_add_type.php index 330b93b9e..be1bd6130 100644 --- a/db/migrations/20241205145604_adb_status_add_type.php +++ b/db/migrations/20241205145604_adb_status_add_type.php @@ -15,6 +15,22 @@ final class AdbStatusAddType extends AbstractMigration $table = $this->table("Status"); $table->addColumn("type", "enum", ["null" => true, "default" => null, "values" => "hausnummer,wohneinheit", "after" => "name"]); $table->update(); + + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=110"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=120"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=130"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=140"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=145"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=200"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=210"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=220"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=230"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=235"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=240"); + $this->query("UPDATE Status SET type = 'wohneinheit' WHERE code=241"); + $this->query("UPDATE Status SET type = 'hausnummer' WHERE code=242"); + $this->query("UPDATE Status SET type = 'wohneinheit' WHERE code=245"); + $this->query("UPDATE Status SET type = 'wohneinheit' WHERE code=300"); } }