diff --git a/migrations/000035_add_order_is_purchase_on_behalf.down.sql b/migrations/000035_add_order_is_purchase_on_behalf.down.sql new file mode 100644 index 0000000..baf5d5d --- /dev/null +++ b/migrations/000035_add_order_is_purchase_on_behalf.down.sql @@ -0,0 +1,3 @@ +-- 回滚: 删除 tb_order 表的 is_purchase_on_behalf 字段 + +ALTER TABLE tb_order DROP COLUMN IF EXISTS is_purchase_on_behalf; diff --git a/migrations/000035_add_order_is_purchase_on_behalf.up.sql b/migrations/000035_add_order_is_purchase_on_behalf.up.sql new file mode 100644 index 0000000..b0fd9c2 --- /dev/null +++ b/migrations/000035_add_order_is_purchase_on_behalf.up.sql @@ -0,0 +1,6 @@ +-- 为 tb_order 表添加代购标志字段 +-- 用于标识订单是否为代购订单 + +ALTER TABLE tb_order ADD COLUMN is_purchase_on_behalf BOOLEAN DEFAULT false; + +COMMENT ON COLUMN tb_order.is_purchase_on_behalf IS '是否为代购订单'; diff --git a/migrations/000036_add_shop_series_allocation_force_recharge.down.sql b/migrations/000036_add_shop_series_allocation_force_recharge.down.sql new file mode 100644 index 0000000..c5ccd1a --- /dev/null +++ b/migrations/000036_add_shop_series_allocation_force_recharge.down.sql @@ -0,0 +1,4 @@ +-- 回滚: 删除 tb_shop_series_allocation 表的强充配置字段 + +ALTER TABLE tb_shop_series_allocation DROP COLUMN IF EXISTS enable_force_recharge; +ALTER TABLE tb_shop_series_allocation DROP COLUMN IF EXISTS force_recharge_amount; diff --git a/migrations/000036_add_shop_series_allocation_force_recharge.up.sql b/migrations/000036_add_shop_series_allocation_force_recharge.up.sql new file mode 100644 index 0000000..311fae6 --- /dev/null +++ b/migrations/000036_add_shop_series_allocation_force_recharge.up.sql @@ -0,0 +1,8 @@ +-- 为 tb_shop_series_allocation 表添加强充配置字段 +-- 用于支持强制充值功能 + +ALTER TABLE tb_shop_series_allocation ADD COLUMN enable_force_recharge BOOLEAN DEFAULT false; +ALTER TABLE tb_shop_series_allocation ADD COLUMN force_recharge_amount BIGINT DEFAULT 0; + +COMMENT ON COLUMN tb_shop_series_allocation.enable_force_recharge IS '是否启用强制充值'; +COMMENT ON COLUMN tb_shop_series_allocation.force_recharge_amount IS '强制充值金额(分)';