Skip to content

Commit

Permalink
🚨 Workaround for varselet "updates all rows at once"
Browse files Browse the repository at this point in the history
  • Loading branch information
havstein committed Apr 2, 2024
1 parent 075a902 commit e3c0b1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ INSERT INTO arbeidsforhold(id, person_ref, arbeidsgiver_ref, startdato, sluttdat
oppdatert)
VALUES (${sequence_number}, ${sequence_number}, ${sequence_number}, '2018-01-01', '2018-01-31', 'STILLING', 100, now());
UPDATE global_snapshot_versjon
SET versjon = 1;
SET versjon = 1 WHERE versjon <> 1; -- WHERE for å slippe varsel om "update without 'where' updates all rows at once
INSERT INTO snapshot(id, data, person_ref, versjon)
VALUES (${sequence_number}, '{}'::json, ${sequence_number}, 1);
INSERT INTO vedtak(id, vedtaksperiode_id, fom, tom, arbeidsgiver_ref, person_ref, forkastet)
Expand Down

0 comments on commit e3c0b1b

Please sign in to comment.