Added category column for items masters

This commit is contained in:
dhanabalan
2025-06-03 16:35:02 +05:30
parent 7760c64ed3
commit 29c092a860
5 changed files with 52 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?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
{
$sql1 = <<<'SQL'
ALTER TABLE items
ADD category TEXT DEFAULT NULL;
SQL;
DB::statement($sql1);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('item_masters', function (Blueprint $table) {
// //
// });
}
};