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(); + } } }