Files
cattleTransportation/tradeCattle/add_order_id_to_delivery.sql
2025-10-27 17:38:20 +08:00

8 lines
278 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 为 delivery 表添加 order_id 字段,用于关联 order 订单表
-- 一个订单可以对应多个装车运单
ALTER TABLE `delivery`
ADD COLUMN `order_id` int(11) DEFAULT NULL COMMENT '订单ID关联order表' AFTER `id`,
ADD INDEX `idx_order_id` (`order_id`);