Files
medical-mall/mall_sql/migrations/20260611_drop_checkin_precheck_uuid_overload.sql
2026-06-12 10:16:27 +08:00

15 lines
524 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.
-- 修复 PGRST203rpc_homecare_checkin_precheck 存在 uuid/text 两个重载版本,
-- PostgREST 无法区分导致签到预校验失败。
-- 删除旧的 uuid 版本,保留 text 版本(兼容字符串工单 ID
DROP FUNCTION IF EXISTS public.rpc_homecare_checkin_precheck(
uuid, -- p_work_order_id
uuid, -- p_worker_id
numeric, -- p_latitude
numeric, -- p_longitude
text, -- p_coordinate_type
numeric, -- p_accuracy
timestamptz, -- p_reported_at
text -- p_location_scene
);