Skip to content

A free open source IT asset/license management system

Renamed slug

sniped799c2862c98
diff --git a/database/migrations/2026_09_11_120000_rename_apple_business_manager_adapter_slug_to_abm.php b/database/migrations/2026_09_11_120000_rename_apple_business_manager_adapter_slug_to_abm.php
new file mode 100644
index 0000000000..44c7b8d0b0
--- /dev/null
+++ b/database/migrations/2026_09_11_120000_rename_apple_business_manager_adapter_slug_to_abm.php
@@ -0,0 +1,29 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Support\Facades\DB;
+
+return new class extends Migration
+{
+ public function up(): void
+ {
+ DB::table('sync_adapter_instances')
+ ->where('slug', 'apple_business_manager')
+ ->update([
+ 'slug' => 'abm',
+ 'adapter_type' => 'abm',
+ 'updated_at' => now(),
+ ]);
+ }
+
+ public function down(): void
+ {
+ DB::table('sync_adapter_instances')
+ ->where('slug', 'abm')
+ ->update([
+ 'slug' => 'apple_business_manager',
+ 'adapter_type' => 'apple_business_manager',
+ 'updated_at' => now(),
+ ]);
+ }
+};