diff --git a/database/migrations/2022_04_27_153631_update_images_table.php b/database/migrations/2022_04_27_153631_update_images_table.php new file mode 100644 index 00000000..242d2429 --- /dev/null +++ b/database/migrations/2022_04_27_153631_update_images_table.php @@ -0,0 +1,38 @@ +index('key'); + $table->index('md5'); + $table->index('sha1'); + $table->index('created_at'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('images', function (Blueprint $table) { + $table->dropIndex('key'); + $table->dropIndex('md5'); + $table->dropIndex('sha1'); + $table->dropIndex('created_at'); + }); + } +};