mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 00:39:20 +08:00
ec_order: 平台订单号唯一约束从(company,shop,platform)改为(company,platform)
- 新增迁移SQL: V20260602__ec_order_unique_company_platform.sql - 更新 ec_design.sql 表结构文档 - ProductSpecImportHelper: 调整导入逻辑适配新唯一约束
This commit is contained in:
@@ -154,7 +154,7 @@ CREATE TABLE `ec_order` (
|
||||
INDEX `fk_ec_order_creator`(`create_by` ASC) USING BTREE,
|
||||
INDEX `fk_ec_order_updater`(`update_by` ASC) USING BTREE,
|
||||
INDEX `fk_ec_order_shop`(`shop_id` ASC) USING BTREE,
|
||||
UNIQUE INDEX `uk_company_shop_platform`(`company_id` ASC, `shop_id` ASC, `platform_order_no` ASC) USING BTREE,
|
||||
UNIQUE INDEX `uk_company_platform`(`company_id` ASC, `platform_order_no` ASC) USING BTREE,
|
||||
CONSTRAINT `fk_ec_order_company` FOREIGN KEY (`company_id`) REFERENCES `org_company` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
CONSTRAINT `fk_ec_order_creator` FOREIGN KEY (`create_by`) REFERENCES `sys_user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
||||
CONSTRAINT `fk_ec_order_import_task` FOREIGN KEY (`import_task_id`) REFERENCES `ec_import_tasks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
||||
|
||||
Reference in New Issue
Block a user