Skip to content

Commit

Permalink
Merge pull request #885 from keyboardSmasher/keyboardSmasher-patch-1
Browse files Browse the repository at this point in the history
[3.x] Add index to created_at
  • Loading branch information
taylorotwell authored May 5, 2020
2 parents 1dd213e + 8fb9955 commit d6d6269
Showing 1 changed file with 3 additions and 1 deletion.
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();

$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 d6d6269

Please sign in to comment.