Migration to add qty to consumables_users table

This commit is contained in:
snipe
2026-04-29 15:22:03 +01:00
parent 46f6766bb4
commit ead0047629
@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('consumables_users', function (Blueprint $table) {
$table->unsignedInteger('qty')->nullable()->default(1)->after('created_by');
});
}
public function down(): void
{
Schema::table('consumables_users', function (Blueprint $table) {
$table->dropColumn('qty');
});
}
};