add migration, model and controller update

This commit is contained in:
Godfrey M
2025-05-12 11:44:34 -07:00
parent 9e3e04521e
commit 0b1be3e63b
4 changed files with 32 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('models', function (Blueprint $table) {
$table->boolean( 'require_serial')->after('category_id')->default(false);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('models', function (Blueprint $table) {
$table->dropColumn('require_serial');
});
}
};