Files
medical-mall/mall_sql/migrations/20260528_readd_age_gender_columns.sql
2026-05-28 15:16:58 +08:00

19 lines
739 B
SQL
Raw Permalink 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.
-- ============================================
-- 重新添加 age / gender 列consumer 端提交预约需要)
-- 不影响 delivery 端链路
-- ============================================
-- care 表
ALTER TABLE public.ec_service_requests
ADD COLUMN IF NOT EXISTS elder_age INTEGER NOT NULL DEFAULT 0,
ADD COLUMN IF NOT EXISTS elder_gender TEXT NOT NULL DEFAULT '';
ALTER TABLE public.ec_care_tasks
ADD COLUMN IF NOT EXISTS elder_age INTEGER NOT NULL DEFAULT 0,
ADD COLUMN IF NOT EXISTS elder_gender TEXT NOT NULL DEFAULT '';
-- 旧订单表
ALTER TABLE public.hss_service_orders
ADD COLUMN IF NOT EXISTS recipient_age INTEGER NOT NULL DEFAULT 0,
ADD COLUMN IF NOT EXISTS recipient_gender TEXT NOT NULL DEFAULT '';