Обновить dags/pogasheniya.py
This commit is contained in:
parent
a6c9320c7b
commit
12cf25d36c
|
|
@ -64,6 +64,7 @@ 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
|
||||||
|
DO UPDATE SET
|
||||||
ON CONFLICT (schet, uid_dogovor, nomer)
|
ON CONFLICT (schet, uid_dogovor, nomer)
|
||||||
name = EXCLUDED.name,
|
name = EXCLUDED.name,
|
||||||
agreement_num = EXCLUDED.agreement_num,
|
agreement_num = EXCLUDED.agreement_num,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue