From 075d31e9f45e7832667a53be622f44a79228ac90 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 15 Dec 2019 21:22:06 +1100 Subject: [PATCH] Index for photo --- .../2019_12_15_210931_indexes_photo.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2019_12_15_210931_indexes_photo.php diff --git a/database/migrations/2019_12_15_210931_indexes_photo.php b/database/migrations/2019_12_15_210931_indexes_photo.php new file mode 100644 index 0000000..d0a3d80 --- /dev/null +++ b/database/migrations/2019_12_15_210931_indexes_photo.php @@ -0,0 +1,36 @@ +index(['signature']); + $table->index(['file_signature']); + $table->index(['duplicate','remove']); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('photo', function (Blueprint $table) { + $table->dropIndex(['signature']); + $table->dropIndex(['file_signature']); + $table->dropIndex(['duplicate','remove']); + }); + } +}