-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(contribution): livraison du lot 4 (#1311)
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
targets/hasura/migrations/default/1709629363000_add_lot_4/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- No down migration. |
8 changes: 8 additions & 0 deletions
8
targets/hasura/migrations/default/1709629363000_add_lot_4/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |