improve and add dashboard

This commit is contained in:
Luca Haid
2026-01-28 10:12:16 +01:00
parent 0bc042f987
commit 6a85d4a980
9 changed files with 791 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddAutoCompleteFilter extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() !== 'thetool') {
return;
}
$workorderTenantConfigTable = $this->table('WorkorderTenantConfig');
if (!$workorderTenantConfigTable->hasColumn('autoCompleteFilter'))
$workorderTenantConfigTable->addColumn('autoCompleteFilter', 'text', [
'null' => true,
'default' => null,
'limit' => \Phinx\Db\Adapter\MysqlAdapter::TEXT_LONG,
'after' => 'workorderActiveFilters',
])
->save();
}
public function down(): void
{
if ($this->getEnvironment() !== 'thetool') {
return;
}
$workorderTenantConfigTable = $this->table('WorkorderTenantConfig');
if ($workorderTenantConfigTable->hasColumn('autoCompleteFilter'))
$workorderTenantConfigTable->removeColumn('autoCompleteFilter')->save();
}
}