Files
thetool/db/migrations/20260127120000_add_tiefbau_sees_normal_docs.php
2026-01-27 11:20:25 +01:00

33 lines
881 B
PHP

<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddTiefbauSeesNormalDocs extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table('WorkorderTenantConfig');
$table->addColumn('tiefbauSeesNormalDocs', 'boolean', [
'default' => false,
'null' => false,
'after' => 'showTechnicalData',
'comment' => 'Allow civil engineering status to see and use normal documentation steps'
]);
$table->update();
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table('WorkorderTenantConfig')
->removeColumn('tiefbauSeesNormalDocs')
->save();
}
}
}