Faserplanung
* Schächte/Verteiler * Rohrplanung
This commit is contained in:
@@ -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") {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user