Mercurial > gemma
diff schema/updates/1200/02.add_demo_stretch_countries.sql @ 4389:5e38667f740c stretches-for-responsibility
Use stretches as areas of responsibility.
This is heavily based on a patch by Tom Gottfried
(read: >90% of the work was done by Tom).
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Thu, 12 Sep 2019 18:13:47 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/schema/updates/1200/02.add_demo_stretch_countries.sql Thu Sep 12 18:13:47 2019 +0200 @@ -0,0 +1,5 @@ +INSERT INTO users.stretch_countries(stretch_id,country) + (SELECT id, substring(name for 2) FROM users.stretches + WHERE name + IN ('BG_stretch_1','HU_stretch_1','RS_stretch_1', + 'AT_stretch_1','SK_stretch_1','RO_stretch_1'))