Update 20250626144500_add_description_to_asset_management.php
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user