getEnvironment() == "thetool") { $this->table("FiberPlanCable")->drop()->save(); $table = $this->table("FiberPlanCable", ["signed" => true]); $table->addColumn("description", "text", ["null" => false]); $table->addColumn("uuid", "string", [ 'limit' => 100,"null" => true]); $table->addColumn("fibers", "integer", ["null" => true]); $table->addColumn("diameter", "integer", ["null" => true]); $table->addColumn("network_id", "integer", ["null" => true]); $table->addColumn("lenght", "integer", ["null" => true]); $table->addColumn("state", "integer", ["null" => true]); $table->addColumn("responsible", "integer", ["null" => true]); $table->addColumn("responsible_text", "string", ['limit' => 100,"null" => true]); $table->addColumn("address_id", "integer", ["null" => true]); $table->addColumn("parent_cable_id", "integer", ["null" => true]); $table->addColumn("is_branch_cable", "integer", ["null" => true, "default" => "0"]); $table->addColumn("branch_from_location", "text", ["null" => true]); $table->addColumn("branch_to_location", "text", ["null" => true]); $table->addColumn("coordinates", "text", ["null" => true]); $table->addColumn("cable_type", "text", ["null" => true]); $table->addColumn("level", "text", ["null" => true]); $table->addColumn("connected_fcp", "text", ["null" => true]); $table->addColumn("used_fiber", "integer", ["null" => true]); $table->addColumn("status", "text", ["null" => true]); $table->addColumn("length_m", "text", ["null" => true]); $table->addColumn("offset", "text", ["null" => true]); $table->addColumn("source", "text", ["null" => true]); $table->addColumn("overlength", "text", ["null" => true]); $table->addColumn("otdr", "text", ["null" => true]); $table->addColumn("tube_number", "text", ["null" => true]); $table->addColumn("total_overlength", "text", ["null" => true]); $table->addColumn("length_with_overlength", "text", ["null" => true]); $table->addColumn("zis_unfinanced", "text", ["null" => true]); $table->addColumn("zis_financed", "text", ["null" => true]); $table->addColumn("comment", "text", ["null" => true]); $table->addColumn("edit_by", "integer", ["null" => true]); $table->addColumn("create_by", "integer", ["null" => true]); $table->addColumn("edit", "integer", ["null" => false]); $table->addColumn("create", "integer", ["null" => false]); $table->save(); } if ($this->getEnvironment() == "addressdb") { } } public function down(): void { if ($this->getEnvironment() == "thetool") { $this->table("FiberPlanCable")->drop()->save(); } if ($this->getEnvironment() == "addressdb") { } } } ?>