Files
thetool/db/migrations/20240101121050_pop_network.php
Spitzer Daniel 02497d8e98 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
2024-01-01 14:16:31 +01:00

37 lines
1.1 KiB
PHP

<?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") {
}
}
}