33 lines
881 B
PHP
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();
|
|
}
|
|
}
|
|
}
|