Use shorter index

This commit is contained in:
Sam Georges 2014-05-15 09:20:00 +10:00
parent 4b0eed62a6
commit 934d7d869f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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