added tiefbau flag
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user