feat(order): 统一网站自交接订单24小时自动完成倒计时
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- +goose Up
|
||||
|
||||
-- 新增网站自交接订单统一自动交接截止时间;仅对功能上线后的新付款非代管订单写入,历史订单保持 NULL 不受影响。
|
||||
ALTER TABLE rental_orders
|
||||
ADD COLUMN handoff_deadline_at DATETIME NULL COMMENT '统一自动交接截止时间' AFTER handoff_started_at,
|
||||
ADD INDEX idx_rental_orders_handoff_deadline (status, handoff_deadline_at);
|
||||
|
||||
-- +goose Down
|
||||
|
||||
ALTER TABLE rental_orders
|
||||
DROP INDEX idx_rental_orders_handoff_deadline,
|
||||
DROP COLUMN handoff_deadline_at;
|
||||
Reference in New Issue
Block a user