added new menu point and added new permission
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user