From b832c47016dc8192f8978982250faaf50ad148c7 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Thu, 2 Feb 2023 19:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E4=BD=99=E9=A2=9D=20?= =?UTF-8?q?=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...2_02_193726_add_index_to_modules_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2023_02_02_193726_add_index_to_modules_table.php diff --git a/database/migrations/2023_02_02_193726_add_index_to_modules_table.php b/database/migrations/2023_02_02_193726_add_index_to_modules_table.php new file mode 100644 index 0000000..1750003 --- /dev/null +++ b/database/migrations/2023_02_02_193726_add_index_to_modules_table.php @@ -0,0 +1,32 @@ +index('balance'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + Schema::table('modules', function (Blueprint $table) { + $table->dropIndex('balance'); + }); + } +};