Skip to content

Commit

Permalink
Group indices
Browse files Browse the repository at this point in the history
Grouped indices based on @barryvdh feedback
  • Loading branch information
keyboardSmasher authored May 5, 2020
1 parent a6154dc commit 8fb9955
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ public function up()
$table->bigIncrements('sequence');
$table->uuid('uuid');
$table->uuid('batch_id');
$table->string('family_hash')->nullable()->index();
$table->string('family_hash')->nullable();
$table->boolean('should_display_on_index')->default(true);
$table->string('type', 20);
$table->longText('content');
$table->dateTime('created_at')->nullable()->index();
$table->dateTime('created_at')->nullable();

$table->unique('uuid');
$table->index('batch_id');
$table->index('family_hash');
$table->index('created_at');
$table->index(['type', 'should_display_on_index']);
});

Expand Down

0 comments on commit 8fb9955

Please sign in to comment.