From 4bb094c22f2d51151d9e36f545301fc29c48949e Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 22 Jul 2025 14:09:57 +0000 Subject: [PATCH] Update 20250626144500_add_description_to_asset_management.php --- .../20250626144500_add_description_to_asset_management.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/migrations/20250626144500_add_description_to_asset_management.php b/db/migrations/20250626144500_add_description_to_asset_management.php index 3c36281ce..33701dec6 100644 --- a/db/migrations/20250626144500_add_description_to_asset_management.php +++ b/db/migrations/20250626144500_add_description_to_asset_management.php @@ -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(); + } } }