diff --git a/database/migrations/2023_03_16_194103_update_table_indexes.php b/database/migrations/2023_03_16_194103_update_table_indexes.php new file mode 100644 index 000000000..7f28e80d9 --- /dev/null +++ b/database/migrations/2023_03_16_194103_update_table_indexes.php @@ -0,0 +1,41 @@ +index(['userid', 'read_at', 'dialog_id']); + }); + Schema::table('web_socket_dialog_msgs', function (Blueprint $table) { + $table->index('dialog_id'); + $table->index('dialog_type'); + $table->index('userid'); + }); + Schema::table('task_workers', function (Blueprint $table) { + $table->index('deleted_at'); + }); + Schema::table('project_tasks', function (Blueprint $table) { + $table->index(['parent_id', 'deleted_at']); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + + } +}