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']); + }); + } +}