Mobile Integration: * in footer.php js eingefügt damit das mobile Menu funktioniert * in menu.php bzw. app.css neue Klasse eingefügt mobile-hide um in der mobilen Version Menupünkte zu verstecken Pop Multiple Networks * Pops können nun mehrere Netzgebiete haben * Netzgebiete und Pop ansicht angepasst * (Script muss ausgeführt werden um die PopNetwork Table vom Bestand zu befüllen) DataTables responsible update * Datatables update und responsible addon * Diverse Anpassungen für Responsible in: - Pops, Geräte Hersteller, Geräte Typen, Devices, Benutzer Migrations * PopNetwork * Poprackmodulepatch
42 lines
1.8 KiB
PHP
42 lines
1.8 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class Poprackmodulepatch extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
if($this->getEnvironment() == "thetool") {
|
|
$poprackmodulepatch = $this->table("Poprackmodulepatch", ['signed' => true]);
|
|
$poprackmodulepatch->addColumn("poprackmodule_id", "integer", ["null" => false]);
|
|
$poprackmodulepatch->addColumn("port", "integer", ["null" => false])->addIndex(['port']);
|
|
$poprackmodulepatch->addColumn("fiberPlanCable_id", "integer", ["null" => true, "default" => null])->addIndex(['fiberPlanCable_id']);
|
|
$poprackmodulepatch->addColumn("destination", "integer", ["null" => true, "default" => null, "comment" => "1:startpoint/2:endpoint"]);
|
|
$poprackmodulepatch->addColumn("create_by", "integer", ["null" => false]);
|
|
$poprackmodulepatch->addColumn("edit_by", "integer", ["null" => false]);
|
|
$poprackmodulepatch->addColumn("create", "integer", ["null" => false]);
|
|
$poprackmodulepatch->addColumn("edit", "integer", ["null" => false]);
|
|
$poprackmodulepatch->save();
|
|
$poprackmodulepatch = $this->table("Poprackmodulepatch");
|
|
$poprackmodulepatch->addForeignKey('poprackmodule_id', 'Poprackmodule', ['id'],['delete'=> 'CASCADE', 'update'=> 'RESTRICT','constraint' => 'poprackmodule_id']);
|
|
$poprackmodulepatch->save();
|
|
}
|
|
|
|
if($this->getEnvironment() == "addressdb") {
|
|
|
|
}
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
if($this->getEnvironment() == "thetool") {
|
|
$this->table("Poprackmodulepatch")->drop()->save();
|
|
}
|
|
|
|
if($this->getEnvironment() == "addressdb") {
|
|
|
|
}
|
|
}
|
|
}
|