add aha blatt parsing
This commit is contained in:
30
db/migrations/20260119170000_add_metadata_to_workorder.php
Normal file
30
db/migrations/20260119170000_add_metadata_to_workorder.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class AddMetadataToWorkorder extends AbstractMigration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$table = $this->table("Workorder");
|
||||
$table
|
||||
->addColumn("metadata", "json", [
|
||||
'null' => true,
|
||||
'default' => null,
|
||||
'after' => 'cableType'
|
||||
])
|
||||
->update();
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$this->table("Workorder")
|
||||
->removeColumn("metadata")
|
||||
->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user