1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Update index name to 'activities_ip_index'

This commit is contained in:
Zero
2021-11-29 15:50:55 +08:00
parent a93254430c
commit 2fd7b1f0d5

View 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');
});
}
}