added new menu point and added new permission

This commit is contained in:
Luca Haid
2025-08-18 18:47:00 +02:00
parent dbbf4f204e
commit 17b4a0f3f2
4 changed files with 41 additions and 1 deletions
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class RmlworkorderUpdateStatusEnum extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("WorkerPermission");
$table->addColumn("canRMLCompany", "enum", ["null" => false, "values" => ['false', 'true'], "default" => "false", "after" => "canSuperexpert"]);
$table->update();
// ALTER TABLE `WorkerPermission` ADD COLUMN `canRMLCompany` ENUM('false', 'true') NOT NULL DEFAULT 'false' AFTER `canSuperexpert`;
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("WorkerPermission");
$table->removeColumn("canRMLCompany");
$table->save();
}
}
}