Skip to content

Commit

Permalink
feat(contribution): livraison du lot 4 (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot authored Mar 5, 2024
1 parent 4e47514 commit 0bd7f49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- No down migration.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
update documents
set initial_id = a.id
from contribution.answers a
inner join contribution.questions q on q.id = a.question_id
where documents."source" = 'contributions'
and a.agreement_id = coalesce(documents."document"->'answers'->'conventionAnswer'->>'idcc', '0000')
and q."content" = documents."title"
and q.order in (6, 9, 10, 19, 29, 33, 35, 37, 40, 41);

0 comments on commit 0bd7f49

Please sign in to comment.