From a708df1ca288269c47270a59effb4f433d778d73 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Mon, 9 Oct 2023 09:05:59 +0200 Subject: [PATCH] WIP new preorder stati --- ...5701_preorderstatus_add_connectiontype.php | 33 +++++++++++++++ .../20231005123208_addessdb_add_status.php | 41 +++++++++++++++++++ public/docs/preorder-api.yaml | 6 ++- 3 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 db/migrations/20231005115701_preorderstatus_add_connectiontype.php create mode 100644 db/migrations/20231005123208_addessdb_add_status.php diff --git a/db/migrations/20231005115701_preorderstatus_add_connectiontype.php b/db/migrations/20231005115701_preorderstatus_add_connectiontype.php new file mode 100644 index 000000000..bc35d467c --- /dev/null +++ b/db/migrations/20231005115701_preorderstatus_add_connectiontype.php @@ -0,0 +1,33 @@ +getEnvironment() == "thetool") { + $table = $this->table("Preorderstatus"); + $table->addColumn("connection_type", "enum", ["null" => false, "values" => "all,single,multi", "default" => "all", "after" => "name"]); + $table->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + $table = $this->table("Preorderstatus"); + $table->removeColumn("connection_type"); + $table->update(); + } + + if($this->getEnvironment() == "addressdb") { + + } + } +} diff --git a/db/migrations/20231005123208_addessdb_add_status.php b/db/migrations/20231005123208_addessdb_add_status.php new file mode 100644 index 000000000..696fe1bd5 --- /dev/null +++ b/db/migrations/20231005123208_addessdb_add_status.php @@ -0,0 +1,41 @@ +getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + $table = $this->table("Status"); + $table->addColumn("code", "integer", ["null" => false]); + $table->addColumn("name", "string", ["null" => false, "limit" => 64]); + $table->addColumn("create_by", "integer", ["null" => false]); + $table->addColumn("edit_by", "integer", ["null" => false]); + $table->addColumn("create", "integer", ["null" => false]); + $table->addColumn("edit", "integer", ["null" => false]); + $table->create(); + + $this->table("Hausnummer")->addColumn("status_id", "integer", ["null" => false, "default" => 1, "after" => "id"])->update(); + $this->table("Wohneinheit")->addColumn("status_id", "integer", ["null" => false, "default" => 1, "after" => "id"])->update(); + } + } + + public function down(): void + { + if($this->getEnvironment() == "thetool") { + + } + + if($this->getEnvironment() == "addressdb") { + $this->table("Hausnummer")->removeColumn("status_id")->update(); + $this->table("Wohneinheit")->removeColumn("status_id")->update(); + $this->table("Status")->drop(); + } + } +} diff --git a/public/docs/preorder-api.yaml b/public/docs/preorder-api.yaml index c9d955222..4a595ed34 100644 --- a/public/docs/preorder-api.yaml +++ b/public/docs/preorder-api.yaml @@ -600,13 +600,17 @@ paths: | 120 | Underground construction planning finished | Tiefbau Planung abgeschlossen | | 130 | Underground construction work assigned | Bauauftrag zugeteilt | | 140 | Conduit at property border | Rohr an Grundstücksgrenze | + | 145 | Installation kit picked up or shipped | Hausanschlusspaket an Kunden übergeben/versandt | | 200 | Conduit in building | Rohr im Gebäude | | 210 | Fiber planning | Leitungsplan in Arbeit | | 220 | Fiber planning finished | Leitungsplan abgeschlossen | | 230 | Fiber installation work assigned | Bauauftrag zugeteilt | | 235 | Fiber on property line | Faser an Grundstücksgrenze | | 240 | Fiber in building | Faser im Gebäude | - | 245 | OTO intalled | Anschlussbox installiert | + | 241 | BEP installed (multi-dwelling) | HÜP installiert (MPH) | + | 242 | Inhouse cabeling finished (multi-dwelling) | Hausverkabelung erledigt (MPH) | + | 244 | BEP installed (single-dwelling) | HÜP installiert (EFH) | + | 245 | OTO installed | Anschlussbox installiert | | 250 | ONT ready | ONT vorbereitet | | 260 | ONT picked up or shipped | ONT abgeholt oder versandt | | 300 | ONT installed | ONT in Betrieb |