From a5647d69ec746753ce0508e1a2a86ee8d5b21c38 Mon Sep 17 00:00:00 2001 From: Sean Fraser Date: Sun, 16 Aug 2020 22:42:26 -0400 Subject: [PATCH] removed redundant index the disk/directory index on the Media table is already handled by the disk/directory/filename/extension index --- migrations/2016_06_27_000000_create_mediable_tables.php | 1 - 1 file changed, 1 deletion(-) diff --git a/migrations/2016_06_27_000000_create_mediable_tables.php b/migrations/2016_06_27_000000_create_mediable_tables.php index b32c029..b46d697 100644 --- a/migrations/2016_06_27_000000_create_mediable_tables.php +++ b/migrations/2016_06_27_000000_create_mediable_tables.php @@ -24,7 +24,6 @@ public function up() $table->integer('size')->unsigned(); $table->timestamps(); - $table->index(['disk', 'directory']); $table->unique(['disk', 'directory', 'filename', 'extension']); $table->index('aggregate_type'); });