From c9e084017300b14d36a8f29301c44e13d53cac8a Mon Sep 17 00:00:00 2001 From: Pang Date: Sun, 17 Dec 2023 16:27:43 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=9F=A5=E8=AF=A2=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...3_12_07_160641_add_index_some_20231217.php | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 database/migrations/2023_12_07_160641_add_index_some_20231217.php diff --git a/database/migrations/2023_12_07_160641_add_index_some_20231217.php b/database/migrations/2023_12_07_160641_add_index_some_20231217.php new file mode 100644 index 000000000..23d0cac84 --- /dev/null +++ b/database/migrations/2023_12_07_160641_add_index_some_20231217.php @@ -0,0 +1,40 @@ +index('task_id'); + $table->index('task_pid'); + }); + Schema::table('project_tasks', function (Blueprint $table) { + $table->index('visibility'); + }); + } + + /** + * Reverse the migrations. + * + * @return voidw + */ + public function down() + { + Schema::table('project_task_users', function (Blueprint $table) { + $table->dropIndex(['task_id']); + $table->dropIndex(['task_pid']); + }); + Schema::table('project_tasks', function (Blueprint $table) { + $table->dropIndex(['visibility']); + }); + } +}