A free open source IT asset/license management system
Added migration
snipea62aacadd104
diff --git a/database/migrations/2026_10_15_175207_add_archived_to_components_table.php b/database/migrations/2026_10_15_175207_add_archived_to_components_table.phpnew file mode 100644index 0000000000..68574a9745--- /dev/null+++ b/database/migrations/2026_10_15_175207_add_archived_to_components_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 components table.+ */+ public function up(): void+ {+ Schema::table('components', function (Blueprint $table) {+ $table->boolean('archived')->default(0)->after('requestable')->index();+ });+ }++ public function down(): void+ {+ Schema::table('components', function (Blueprint $table) {+ $table->dropColumn('archived');+ });+ }+};