annotate schema/updates/1200/02.add_demo_stretch_countries.sql @ 5560:f2204f91d286

Join the log lines of imports to the log exports to recover data from them. Used in SR export to extract information that where in the meta json but now are only found in the log.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 09 Feb 2022 18:34:40 +0100
parents 5e38667f740c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4389
5e38667f740c Use stretches as areas of responsibility.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
1 INSERT INTO users.stretch_countries(stretch_id,country)
5e38667f740c Use stretches as areas of responsibility.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
2 (SELECT id, substring(name for 2) FROM users.stretches
5e38667f740c Use stretches as areas of responsibility.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
3 WHERE name
5e38667f740c Use stretches as areas of responsibility.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
4 IN ('BG_stretch_1','HU_stretch_1','RS_stretch_1',
5e38667f740c Use stretches as areas of responsibility.
Sascha Wilde <wilde@intevation.de>
parents:
diff changeset
5 'AT_stretch_1','SK_stretch_1','RO_stretch_1'))