Commit c1cc930ecb8a3ef42e744fb3be61ffc1303952da
1 parent
a6606bee
refactor(storage): 移除重复的唯一索引约束
- 删除了表 TaxPipelineMapping 中关于 pipeline_id、document_type 和 system_data_id 的唯一索引 uk_pipeline_id_document_type_system_data_id - 保留了现有的主键和状态索引 idx_pipeline_id_state - 确保数据完整性由应用层或其他数据库约束维护
Showing
1 changed file
with
0 additions
and
1 deletions
tax-storage/src/main/resources/com/diligrp/tax/storage/repo/TaxPipelineMappingRepository.xml
| ... | ... | @@ -82,7 +82,6 @@ |
| 82 | 82 | `created_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
| 83 | 83 | `modified_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| 84 | 84 | PRIMARY KEY (`id`) USING BTREE, |
| 85 | - UNIQUE KEY `uk_pipeline_id_document_type_system_data_id` (`pipeline_id`, `document_type`, `system_data_id`) USING BTREE, | |
| 86 | 85 | KEY `idx_pipeline_id_state` (`pipeline_id`, `state`) USING BTREE |
| 87 | 86 | ) ENGINE = InnoDB |
| 88 | 87 | DEFAULT CHARSET = utf8mb4 | ... | ... |