Update 20250626144500_add_description_to_asset_management.php

This commit is contained in:
Luca Haid
2025-07-22 14:09:57 +00:00
parent 158f6c4a8a
commit 4bb094c22f

View File

@@ -10,12 +10,14 @@ final class AddDescriptionToAssetManagement extends AbstractMigration
*/
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('AssetManagement');
$table->addColumn('description', 'text', [
'null' => true,
'after' => 'name',
]);
$table->update();
}
}
/**
@@ -23,8 +25,10 @@ final class AddDescriptionToAssetManagement extends AbstractMigration
*/
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table('AssetManagement');
$table->removeColumn('description');
$table->update();
}
}
}