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 CreatePagesTable extends Migration
public function up()
{
Schema::create('pages', function (Blueprint $table) {
$table->string('slug');
$table->string('slug')->index();
$table->string('title');
$table->boolean('visibility');
$table->longText('content');