Skip to content

A free open source IT asset/license management system

Add qty to checkout_acceptances table

Marcus Moore03d3fb6a5f2d
diff --git a/database/migrations/2025_08_12_225214_add_qty_to_checkout_acceptances_table.php b/database/migrations/2025_08_12_225214_add_qty_to_checkout_acceptances_table.php
new file mode 100644
index 0000000000..2bb32b0e90
--- /dev/null
+++ b/database/migrations/2025_08_12_225214_add_qty_to_checkout_acceptances_table.php
@@ -0,0 +1,27 @@
+<?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('checkout_acceptances', function (Blueprint $table) {
+ $table->unsignedInteger('qty')->nullable()->after('assigned_to_id')->default(null);
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::table('checkout_acceptances', function (Blueprint $table) {
+ $table->dropColumn('qty');
+ });
+ }
+};