Skip to content
Snippets Groups Projects
Commit f4282ea4 authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

fix: correct ON CONFLICT in oracle2postgresql

parent 6e1d7b7f
No related branches found
No related tags found
No related merge requests found
Pipeline #433014 passed
......@@ -171,7 +171,7 @@ class Oracle2PostgreSQL:
insert_text = text(
f'INSERT INTO "{self.table_for_imported_attributes}" (uid, attribute, value) '
"VALUES (:uid, :attribute, :value) "
"ON CONFLICT (id) DO UPDATE SET id = EXCLUDED.id"
"ON CONFLICT (uid,attribute,sp,expires) DO NOTHING"
)
with self.postgresql_engine.begin() as conn:
for username in usernames:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment