mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-01-19 20:42:47 +08:00
Update index name to 'activities_ip_index'
This commit is contained in:
parent
a93254430c
commit
2fd7b1f0d5
|
@ -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');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user