From 6291acbcee8da56c76dc10cc84f80f41f02df488 Mon Sep 17 00:00:00 2001 From: Wisp X <1591788658@qq.com> Date: Wed, 27 Apr 2022 15:51:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=9B=BE=E7=89=87=E8=A1=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2022_04_27_153631_update_images_table.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 database/migrations/2022_04_27_153631_update_images_table.php 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'); + }); + } +};