-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default svarbrev settings for AFP. Specify exception when setting…
…s not found.
- Loading branch information
1 parent
d659a9b
commit 5bb3c03
Showing
3 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
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
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
40 changes: 40 additions & 0 deletions
40
src/main/resources/db/migration/V163__add_AFP_svarbrev_settings.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,40 @@ | ||
INSERT INTO klage.svarbrev_settings (id, ytelse_id, behandlingstid_units, custom_text, should_send, created, modified, | ||
created_by, behandlingstid_unit_type, type_id, behandlingstid_unit_type_id) | ||
values (gen_random_uuid(), '27', 12, null, false, now(), now(), 'SYSTEMBRUKER', 'WEEKS', '1', '1'); | ||
|
||
insert into klage.svarbrev_settings_history (id, svarbrev_settings_id, ytelse_id, behandlingstid_units, custom_text, | ||
created, created_by, should_send, behandlingstid_unit_type, type_id, | ||
behandlingstid_unit_type_id) | ||
select gen_random_uuid(), | ||
s.id, | ||
s.ytelse_id, | ||
s.behandlingstid_units, | ||
s.custom_text, | ||
s.modified, | ||
s.created_by, | ||
s.should_send, | ||
s.behandlingstid_unit_type, | ||
s.type_id, | ||
s.behandlingstid_unit_type_id | ||
from klage.svarbrev_settings s | ||
WHERE type_id = '1' | ||
AND ytelse_id = '27'; | ||
|
||
INSERT INTO klage.svarbrev_settings (id, ytelse_id, behandlingstid_units, custom_text, should_send, created, modified, | ||
created_by, behandlingstid_unit_type, type_id, behandlingstid_unit_type_id) | ||
values (gen_random_uuid(), '27', 12, null, false, now(), now(), 'SYSTEMBRUKER', 'WEEKS', '2', '1'); | ||
|
||
select gen_random_uuid(), | ||
s.id, | ||
s.ytelse_id, | ||
s.behandlingstid_units, | ||
s.custom_text, | ||
s.modified, | ||
s.created_by, | ||
s.should_send, | ||
s.behandlingstid_unit_type, | ||
s.type_id, | ||
s.behandlingstid_unit_type_id | ||
from klage.svarbrev_settings s | ||
WHERE type_id = '2' | ||
AND ytelse_id = '27'; |