added technical data to xinon workorder and workordermph now has a unassign button

This commit is contained in:
Luca Haid
2026-01-18 17:42:11 +00:00
parent a35b865fad
commit 6ab41a9169
13 changed files with 508 additions and 24 deletions

View File

@@ -0,0 +1,26 @@
<?php
use Phinx\Migration\AbstractMigration;
class AddShowTechnicalDataToTenantConfig extends AbstractMigration {
public function up() {
if ($this->getEnvironment() !== "thetool") return;
$table = $this->table('WorkorderTenantConfig');
if (!$table->hasColumn('showTechnicalData')) {
$table->addColumn('showTechnicalData', 'boolean', [
'default' => false,
'after' => 'requireCableType'
])->update();
}
}
public function down() {
if ($this->getEnvironment() !== "thetool") return;
$table = $this->table('WorkorderTenantConfig');
if ($table->hasColumn('showTechnicalData')) {
$table->removeColumn('showTechnicalData')->update();
}
}
}