Merge branch 'fronkdev' into 'master'

Now showing all Workorders in Preorder detail

See merge request fronk/thetool!661
This commit is contained in:
Frank Schubert
2024-10-10 14:43:14 +00:00
12 changed files with 168 additions and 54 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddPreorderReadonlyPermission extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table ("WorkerPermission");
$table->addColumn("preorderreadonly", "enum", ["null" => false, "values" => 'false,true', "default" => "false", "after" => "preorderlogistics"]);
$table->update();
}
if($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table ("WorkerPermission")->removeColumn("preorderreadonly");
}
if($this->getEnvironment() == "addressdb") {
}
}
}