Use shorter index
This commit is contained in:
parent
4b0eed62a6
commit
934d7d869f
|
|
@ -16,7 +16,7 @@ class DbBackendUserPreferences extends Migration
|
|||
$table->string('group');
|
||||
$table->string('item');
|
||||
$table->text('value')->nullable();
|
||||
$table->index(['user_id', 'namespace', 'group', 'item']);
|
||||
$table->index(['user_id', 'namespace', 'group', 'item'], 'key_index');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class DbSystemParameters extends Migration
|
|||
$table->string('group');
|
||||
$table->string('item');
|
||||
$table->text('value')->nullable();
|
||||
$table->index(['namespace', 'group', 'item']);
|
||||
$table->index(['namespace', 'group', 'item'], 'key_index');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue