Skip to content

Commit

Permalink
feat: ajout de la migration des initial_id document
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Zeinstra committed Oct 10, 2023
1 parent b793219 commit d89df56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
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 = documents."document"->'answers'->'conventionAnswer'->>'idcc'
and q."content" = documents."title"

0 comments on commit d89df56

Please sign in to comment.