3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 18:45:45 +00:00

Add qty to action_logs table

This commit is contained in:
Marcus Moore
2025-12-10 13:30:34 -08:00
parent 75ddb50738
commit 4b1339a11c

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('action_logs', function (Blueprint $table) {
$table->integer('qty')->default(1)->after('expected_checkin');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('action_logs', function (Blueprint $table) {
$table->dropColumn('qty');
});
}
};