سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 08:00 UTC
fix(phase1a): drop prior three-argument sync function before removing its defaults
davoodmehraban89 committed
Oct 16, 2026 at 13:32 UTC
9b3c83cdfa7e6804aec5a992a79e2d7d8ac8c151
1 file changed
+4
supabase/migrations/20261016100500_phase1a_optimistic_version_sync.sql
+4
@@ -62,6 +62,10 @@ GRANT EXECUTE ON FUNCTION private.finora_phase1a_log_legacy_sync(text) TO authen
62
63
-- Three-argument overload MUST NO LONGER HAVE DEFAULTS, otherwise calling
64
-- with two args is ambiguous in PostgreSQL and in PostgREST overload routing.
65
+-- PostgreSQL CREATE OR REPLACE cannot remove existing argument DEFAULT clauses.
66
+-- Explicit DROP/CREATE is required. Application uses the unchanged signature;
67
+-- review all dependencies in the isolated Supabase stack before Production.
68
+DROP FUNCTION IF EXISTS public.finora_sync_records(jsonb,jsonb,uuid);
69
CREATE OR REPLACE FUNCTION public.finora_sync_records(
70
p_upserts jsonb, p_deletes jsonb, p_organization_id uuid
71
) RETURNS void