added technical data to xinon workorder and workordermph now has a unassign button
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user