Merge branch 'spidev' into 'master'

Faserplanung

See merge request fronk/thetool!1909
This commit is contained in:
Daniel Spitzer
2025-11-30 18:23:38 +00:00

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddFieldFiberPlanDispatcherGisUuid extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("FiberPlanDispatcher", ["signed" => true]);
$table->addColumn("gis_uuid", "text", ["null" => false, "after" => "gps_long"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("FiberPlanDispatcher")->removeColumn("gis_uuid")->save();
}
if($this->getEnvironment() == "addressdb") {
}
}
}