-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sykefraværstatistikk må ta hensyn til år og kvartal
Dersom det blir gjort en reeksport av gammel statistikk så blir disse liggende som siste melding på kafka. Dette skjedde i prod i februar. Denne PR fikser problemet uten å dra ned eksisterende endepunkt som vi vet viser riktig data pga full eksport gjort 29. feb. Det kommer en ny PR straks som tar i bruk nye tabeller og rydder opp koden. Dette for å unngå nedetid mens vi fyller tabellen.
- Loading branch information
Showing
4 changed files
with
338 additions
and
80 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
19 changes: 19 additions & 0 deletions
19
src/main/resources/db/migration/V12__arstall_kvartal_sykefravarstatistikk.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,19 @@ | ||
create table sykefraværstatistikk_metadata_v2 | ||
( | ||
virksomhetsnummer text not null, | ||
arstall numeric not null, | ||
kvartal numeric not null, | ||
bransje text, | ||
næring text not null, | ||
primary key (virksomhetsnummer, arstall, kvartal) | ||
); | ||
|
||
create table sykefraværstatistikk_v2 | ||
( | ||
kode text not null, | ||
arstall numeric not null, | ||
kvartal numeric not null, | ||
kategori text not null, | ||
prosent decimal not null, | ||
primary key (kode, arstall, kvartal) | ||
); |
Oops, something went wrong.