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 Anpassungen auf neu getProperty Migrations * PopNetwork * Poprackmodulepatch
43 lines
1.6 KiB
PHP
43 lines
1.6 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
use Phinx\Util\Literal;
|
|
|
|
final class Timerecording extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$timerecording = $this->table("Timerecording", ["signed" => true]);
|
|
$timerecording->addColumn("user_id", "integer", ["null" => false])->addIndex(["user_id"]);
|
|
$timerecording->addColumn("start", "integer", ["null" => true]);
|
|
$timerecording->addColumn("end", "integer", ["null" => true]);
|
|
$timerecording->addColumn("timerecordingCategory_id", "integer", ["null" => false]);
|
|
$timerecording->addColumn("commend", "text", ["null" => true]);
|
|
$timerecording->addColumn("approved", "integer", ["null" => false, "default" => "0"]);
|
|
$timerecording->addColumn("completed", "integer", ["null" => false, "default" => "0"]);
|
|
$timerecording->addColumn("create_by", "integer", ["null" => false]);
|
|
$timerecording->addColumn("edit_by", "integer", ["null" => false]);
|
|
$timerecording->addColumn("create", "integer", ["null" => false]);
|
|
$timerecording->addColumn("edit", "integer", ["null" => false]);
|
|
$timerecording->save();
|
|
}
|
|
|
|
if ($this->getEnvironment() == "addressdb") {
|
|
|
|
}
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
if ($this->getEnvironment() == "thetool") {
|
|
$this->table("Timerecording")->drop()->save();
|
|
}
|
|
|
|
if ($this->getEnvironment() == "addressdb") {
|
|
|
|
}
|
|
}
|
|
}
|