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:
@ -14,7 +14,7 @@ class AddIndexForUserIp extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('activities', function (Blueprint $table) {
|
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()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table('activities', function (Blueprint $table) {
|
Schema::table('activities', function (Blueprint $table) {
|
||||||
$table->dropIndex('ip_address_index');
|
$table->dropIndex('activities_ip_index');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user