Skip to content

Commit

Permalink
Do nothing on conflicts
Browse files Browse the repository at this point in the history
Some elis have multiple xml files in the migrated data

RISDEV-4929
  • Loading branch information
malte-laukoetter committed Oct 10, 2024
1 parent 592420e commit 0537642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/import_from_migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ INSERT INTO :NORMS_SCHEMA.norms (xml) SELECT ldml_xml.content FROM :MIGRATION_SC
WHERE
migration_status = 'LEGALDOCML_TRANSFORMATION_SUCCEEDED'
AND xpath_exists('//akn:act[@name="regelungstext"]', ldml_xml.content, '{{akn,http://Inhaltsdaten.LegalDocML.de/1.7/}}')
AND migration_error.id IS NULL;
AND migration_error.id IS NULL
ON CONFLICT DO NOTHING;

0 comments on commit 0537642

Please sign in to comment.