Mobile Integration,Pop Multiple Networks,DataTables responsible update,Migrations
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
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?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") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class PopNetwork extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
$popnetwork = $this->table("PopNetwork", ['signed' => true]);
|
||||
$popnetwork->addColumn("pop_id", "integer", ["null" => false])->addIndex(['pop_id']);
|
||||
$popnetwork->addColumn("network_id", "integer", ["null" => false])->addIndex(['network_id']);
|
||||
$popnetwork->addColumn("create_by", "integer", ["null" => false]);
|
||||
$popnetwork->addColumn("edit_by", "integer", ["null" => false]);
|
||||
$popnetwork->addColumn("create", "integer", ["null" => false]);
|
||||
$popnetwork->addColumn("edit", "integer", ["null" => false]);
|
||||
$popnetwork->save();
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if($this->getEnvironment() == "thetool") {
|
||||
$this->table("PopNetwork")->drop()->save();
|
||||
}
|
||||
|
||||
if($this->getEnvironment() == "addressdb") {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user