Skip to content

NOW MANAGED ON CODEBERG

Update index name to 'activities_ip_index'

Zero2fd7b1f0d5e5
diff --git a/database/migrations/2021_11_26_070438_add_index_for_user_ip.php b/database/migrations/2021_11_26_070438_add_index_for_user_ip.php
index c4681a9a3..eebab7958 100644
--- a/database/migrations/2021_11_26_070438_add_index_for_user_ip.php
+++ b/database/migrations/2021_11_26_070438_add_index_for_user_ip.php
@@ -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');
});
}
}