WIP new preorder stati

This commit is contained in:
Frank Schubert
2023-10-09 09:05:59 +02:00
parent be9b78065d
commit a708df1ca2
3 changed files with 79 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class PreorderstatusAddConnectiontype extends AbstractMigration
{
public function up(): void
{
if($this->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") {
}
}
}

View File

@@ -0,0 +1,41 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddessdbAddStatus extends AbstractMigration
{
public function up(): void
{
if($this->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();
}
}
}

View File

@@ -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 |