added indexes to the database

This commit is contained in:
Peter Papp
2021-03-14 11:04:19 +01:00
parent 5778de20f2
commit 95eb167622
10 changed files with 15 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ class CreateSettingsTable extends Migration
public function up()
{
Schema::create('settings', function (Blueprint $table) {
$table->string('name')->unique()->primary();
$table->string('name')->unique()->primary()->index();
$table->longText('value')->nullable();
});
}