A free open source IT asset/license management system
Removed the built-in from the databases if never used
snipefdd5466a0787
diff --git a/database/migrations/2026_09_16_163131_remove_built_in_from_sync_adapter_instances.php b/database/migrations/2026_09_16_163131_remove_built_in_from_sync_adapter_instances.phpnew file mode 100644index 0000000000..eda04a9ea6--- /dev/null+++ b/database/migrations/2026_09_16_163131_remove_built_in_from_sync_adapter_instances.php@@ -0,0 +1,41 @@+<?php++use Illuminate\Database\Migrations\Migration;+use Illuminate\Database\Schema\Blueprint;+use Illuminate\Support\Facades\DB;+use Illuminate\Support\Facades\Schema;++/**+ * Adapter TYPE discovery moved to the glob-based+ * SyncAdapter::allTypes() at runtime, so we no longer pre-populate a+ * sync_adapter_instances row per shipped adapter. This migration clears+ * out the untouched seed rows left by the earlier seed migrations and+ * drops the now-vestigial built_in column. Configured rows (any row+ * with associated sync_adapter_settings) are preserved and become+ * normal admin-owned instances.+ */+return new class extends Migration+{+ public function up(): void+ {+ DB::table('sync_adapter_instances')+ ->where('built_in', true)+ ->whereNotExists(function ($query) {+ $query->select(DB::raw(1))+ ->from('sync_adapter_settings')+ ->whereColumn('sync_adapter_settings.sync_adapter_instance_id', 'sync_adapter_instances.id');+ })+ ->delete();++ Schema::table('sync_adapter_instances', function (Blueprint $table) {+ $table->dropColumn('built_in');+ });+ }++ public function down(): void+ {+ Schema::table('sync_adapter_instances', function (Blueprint $table) {+ $table->boolean('built_in')->default(false)->after('active');+ });+ }+};