Skip to content

A free open source IT asset/license management system

Added migration

sniped4b4e4bc7985
diff --git a/database/migrations/2026_10_16_120000_add_archived_to_accessories_table.php b/database/migrations/2026_10_16_120000_add_archived_to_accessories_table.php
new file mode 100644
index 0000000000..2104886dd6
--- /dev/null
+++ b/database/migrations/2026_10_16_120000_add_archived_to_accessories_table.php
@@ -0,0 +1,25 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Add an `archived` flag to the accessories table.
+ */
+ public function up(): void
+ {
+ Schema::table('accessories', function (Blueprint $table) {
+ $table->boolean('archived')->default(0)->after('requestable')->index();
+ });
+ }
+
+ public function down(): void
+ {
+ Schema::table('accessories', function (Blueprint $table) {
+ $table->dropColumn('archived');
+ });
+ }
+};