diff --git a/database/migrations/2025_11_18_205535_add_idx_prt_element_type_name_proc_index_to_process_request_tokens_table.php b/database/migrations/2025_11_18_205535_add_idx_prt_element_type_name_proc_index_to_process_request_tokens_table.php new file mode 100644 index 0000000000..94b45bea5f --- /dev/null +++ b/database/migrations/2025_11_18_205535_add_idx_prt_element_type_name_proc_index_to_process_request_tokens_table.php @@ -0,0 +1,27 @@ +index(['element_type', 'element_name', 'process_id', 'id'], 'idx_prt_element_type_name_proc'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('process_request_tokens', function (Blueprint $table) { + $table->dropIndex('idx_prt_element_type_name_proc'); + }); + } +}; diff --git a/database/migrations/2025_11_18_210632_add_idx_pv_process_draft_index_to_process_versions_table.php b/database/migrations/2025_11_18_210632_add_idx_pv_process_draft_index_to_process_versions_table.php new file mode 100644 index 0000000000..c9d1693bb8 --- /dev/null +++ b/database/migrations/2025_11_18_210632_add_idx_pv_process_draft_index_to_process_versions_table.php @@ -0,0 +1,27 @@ +index(['process_id', 'draft'], 'idx_pv_process_draft'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('process_versions', function (Blueprint $table) { + $table->dropIndex('idx_pv_process_draft'); + }); + } +}; diff --git a/database/migrations/2025_11_18_210835_add_idx_ca_category_type_index_to_category_assignments_table.php b/database/migrations/2025_11_18_210835_add_idx_ca_category_type_index_to_category_assignments_table.php new file mode 100644 index 0000000000..8e04829d03 --- /dev/null +++ b/database/migrations/2025_11_18_210835_add_idx_ca_category_type_index_to_category_assignments_table.php @@ -0,0 +1,27 @@ +index(['category_type', 'category_id', 'assignable_type', 'assignable_id'], 'idx_ca_category_type'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('category_assignments', function (Blueprint $table) { + $table->dropIndex('idx_ca_category_type'); + }); + } +};