added new features for asset mgmt
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user