A free open source IT asset/license management system
Addes saved search table
snipecd2d05eda18d
diff --git a/database/migrations/2026_10_30_183928_create_saved_searches_table.php b/database/migrations/2026_10_30_183928_create_saved_searches_table.phpnew file mode 100644index 0000000000..a586cd09fd--- /dev/null+++ b/database/migrations/2026_10_30_183928_create_saved_searches_table.php@@ -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+{+ public function up(): void+ {+ Schema::create('saved_searches', function (Blueprint $table) {+ $table->id();+ $table->unsignedBigInteger('created_by');+ $table->string('table_name');+ $table->string('model')->nullable();+ $table->string('name');+ $table->text('query_string');+ $table->timestamps();++ $table->index(['created_by', 'table_name']);+ });+ }++ public function down(): void+ {+ Schema::dropIfExists('saved_searches');+ }+};