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']); + }); + } +}