From 49f27ee4cd6e7d8e588b2f0e78be1e0e5f219864 Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Mon, 3 Jul 2023 22:33:30 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E9=A1=B9=E7=9B=AE=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=94=A8=E6=88=B7=E8=A1=A8=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=20=E2=80=9Cuserid=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._add_index_to_project_task_users_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2023_07_03_212841_add_index_to_project_task_users_table.php diff --git a/database/migrations/2023_07_03_212841_add_index_to_project_task_users_table.php b/database/migrations/2023_07_03_212841_add_index_to_project_task_users_table.php new file mode 100644 index 000000000..211c96895 --- /dev/null +++ b/database/migrations/2023_07_03_212841_add_index_to_project_task_users_table.php @@ -0,0 +1,34 @@ +index('userid'); + } + }); + } + + /** + * Reverse the migrations. + * + * @return voidw + */ + public function down() + { + Schema::table('project_task_users', function (Blueprint $table) { + $table->dropIndex(['userid']); + }); + } +}