Faserplanung

* Schächte/Verteiler
 * Rohrplanung
This commit is contained in:
Spitzer Daniel
2024-04-16 16:55:16 +02:00
parent f2ac8e9d70
commit e3f8c2326e
17 changed files with 2806 additions and 0 deletions
@@ -0,0 +1,36 @@
<?php
use Phinx\Migration\AbstractMigration;
final class FiberPlanPipeEndpoint extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("FiberPlanPipeEndpoint", ["signed" => true]);
$table->addColumn("fiberPlanPipe_id", "integer", ["null" => false]);
$table->addColumn("pop_id", "integer", ["null" => true]);
$table->addColumn("fiberPlanDispatcher_id", "integer", ["null" => true]);
$table->addColumn("building_id", "integer", ["null" => true]);
$table->addColumn("sort", "integer", ["null" => false]);
$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->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("FiberPlanPipeEndpoint")->drop()->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}