]> BookStack Code Mirror - bookstack/commitdiff
Update index name to 'activities_ip_index'
authorZero <redacted>
Mon, 29 Nov 2021 07:50:55 +0000 (15:50 +0800)
committerZero <redacted>
Fri, 10 Dec 2021 06:50:04 +0000 (14:50 +0800)
database/migrations/2021_11_26_070438_add_index_for_user_ip.php

index c4681a9a3fd6e88fd903a3257edc285cb186898b..eebab795869b71fcacbb34572b3f1ef9431712fb 100644 (file)
@@ -14,7 +14,7 @@ class AddIndexForUserIp extends Migration
     public function up()
     {
         Schema::table('activities', function (Blueprint $table) {
-            $table->index('ip', 'ip_address_index');
+            $table->index('ip', 'activities_ip_index');
         });
     }
 
@@ -26,7 +26,7 @@ class AddIndexForUserIp extends Migration
     public function down()
     {
         Schema::table('activities', function (Blueprint $table) {
-            $table->dropIndex('ip_address_index');
+            $table->dropIndex('activities_ip_index');
         });
     }
 }