Add spliceCompleted checkbox and update OAID handling in WorkorderMphBase
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class AddSpliceCompletedToWorkorderMph extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$table = $this->table('WorkorderMph');
|
||||
$table->addColumn('spliceCompleted', 'boolean', [
|
||||
'null' => true,
|
||||
'default' => null,
|
||||
'comment' => 'Spleiß im HÜP/HAK erledigt',
|
||||
'after' => 'dropCableAvailable'
|
||||
]);
|
||||
$table->update();
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$table = $this->table('WorkorderMph');
|
||||
$table->removeColumn('spliceCompleted');
|
||||
$table->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user