37 lines
1.3 KiB
PHP
37 lines
1.3 KiB
PHP
<?php
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class FiberPlanCablePipe extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$table = $this->table("FiberPlanCablePipe", ["signed" => true]);
|
|
$table->addColumn("fiberPlanCable_id", "integer", ["null" => false]);
|
|
$table->addColumn("fiberPlanPipe_id", "integer", ["null" => false]);
|
|
$table->addColumn("fiberPlanPipe_sub", "integer", ["null" => false]);
|
|
$table->addColumn("sort", "integer", ["null" => false]);
|
|
$table->addColumn("direction", "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("FiberPlanCablePipe")->drop()->save();
|
|
}
|
|
if ($this->getEnvironment() == "addressdb") {
|
|
}
|
|
}
|
|
}
|
|
?>
|