Skip to content

Commit

Permalink
Correct inserting publish state
Browse files Browse the repository at this point in the history
RISDEV-0000
  • Loading branch information
VictorDelCampo committed Nov 6, 2024
1 parent a73eb0b commit bca75a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/import_from_migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DELETE FROM :NORMS_SCHEMA.norms WHERE
-- Insert into norms table and count the rows inserted using CTE
WITH inserted_rows AS (
INSERT INTO :NORMS_SCHEMA.norms (xml, publish_state)
SELECT ldml_xml.content, 'QUEUED_FOR_PUBLISH'::norm_publish_state
SELECT ldml_xml.content, 'QUEUED_FOR_PUBLISH'
FROM :MIGRATION_SCHEMA.migration_record
INNER JOIN :MIGRATION_SCHEMA.ldml ldml ON migration_record.id = ldml.migration_record_id
INNER JOIN :MIGRATION_SCHEMA.ldml_xml ldml_xml ON ldml.id = ldml_xml.ldml_id
Expand Down

0 comments on commit bca75a3

Please sign in to comment.