Skip to content

Commit

Permalink
Add hyvinvointialue for sotkanet
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakarFin committed Nov 20, 2023
1 parent 09af47d commit 9f47ea7
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

-- remove if it's already linked (in dev envs etc)
DELETE FROM oskari_statistical_datasource_regionsets
where datasource_id = (SELECT id FROM oskari_statistical_datasource WHERE locale like '%Sotkanet%')
AND layer_id = (SELECT id FROM oskari_maplayer WHERE type='statslayer' AND name = 'tilastointialueet:hyvinvointialue4500k');

-- add the link
INSERT INTO
oskari_statistical_datasource_regionsets(datasource_id, layer_id, config)
VALUES(
(SELECT id FROM oskari_statistical_datasource
WHERE locale like '%Sotkanet%'),
(SELECT id FROM oskari_maplayer WHERE type='statslayer' AND name = 'tilastointialueet:hyvinvointialue4500k'),
'{"regionType":"HYVINVOINTIALUE"}');

0 comments on commit 9f47ea7

Please sign in to comment.