added new features for asset mgmt

This commit is contained in:
Luca Haid
2025-06-26 15:23:57 +02:00
parent 97f8a625e4
commit b0d7d4aeeb
10 changed files with 159 additions and 27 deletions
@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddDescriptionToAssetManagement extends AbstractMigration
{
/**
* Adds the 'description' column to the 'AssetManagement' table.
*/
public function up(): void
{
$table = $this->table('AssetManagement');
$table->addColumn('description', 'text', [
'null' => true,
'after' => 'name',
]);
$table->update();
}
/**
* Removes the 'description' column from the 'AssetManagement' table.
*/
public function down(): void
{
$table = $this->table('AssetManagement');
$table->removeColumn('description');
$table->update();
}
}