Обновить dags/OSV_with_docs.py

This commit is contained in:
bn_user 2025-12-02 14:16:01 +00:00
parent cb2b15405b
commit a312c9e5ff
1 changed files with 2 additions and 1 deletions

View File

@ -324,8 +324,9 @@ def pogasheniya(**kwargs):
conn.execute(""" conn.execute("""
INSERT INTO public.pogasheniya (schet, uid_dogovor, name, nomer, date_begin, date_end) INSERT INTO public.pogasheniya (schet, uid_dogovor, name, nomer, date_begin, date_end)
SELECT * FROM temp_pogasheniya SELECT * FROM temp_pogasheniya
ON CONFLICT (schet, uid_dogovor, nomer) ON CONFLICT (schet, uid_dogovor)
DO UPDATE SET DO UPDATE SET
nomer = EXCLUDED.nomer,
name = EXCLUDED.name, name = EXCLUDED.name,
nomer = EXCLUDED.nomer, nomer = EXCLUDED.nomer,
date_begin = EXCLUDED.date_begin, date_begin = EXCLUDED.date_begin,