visuddhinanda 2 هفته پیش
والد
کامیت
1b9dba9b25
1فایلهای تغییر یافته به همراه28 افزوده شده و 0 حذف شده
  1. 28 0
      api-v13/database/migrations/2026_05_06_021102_add_index_to_user_dicts_parent_column.php

+ 28 - 0
api-v13/database/migrations/2026_05_06_021102_add_index_to_user_dicts_parent_column.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
+{
+    /**
+     * Run the migrations.
+     */
+    public function up(): void
+    {
+        Schema::table('user_dicts', function (Blueprint $table) {
+            $table->index('parent');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     */
+    public function down(): void
+    {
+        Schema::table('user_dicts', function (Blueprint $table) {
+            $table->dropIndex(['parent']);
+        });
+    }
+};