-- 回滚套餐使用记录的购买计时条款快照字段。
DROP TRIGGER IF EXISTS trg_validate_package_usage_terms_snapshot ON tb_package_usage;
DROP FUNCTION IF EXISTS validate_package_usage_terms_snapshot();

ALTER TABLE tb_package_usage
    DROP COLUMN IF EXISTS duration_days_snapshot,
    DROP COLUMN IF EXISTS duration_months_snapshot,
    DROP COLUMN IF EXISTS calendar_type_snapshot,
    DROP COLUMN IF EXISTS expiry_base_snapshot;
