From c2d9b2880ce210b40ca84e582b08782c1a02431e Mon Sep 17 00:00:00 2001 From: Patrick Alcaraz Date: Wed, 16 Dec 2015 09:37:24 +0100 Subject: [PATCH] Fix id unique for ch_bafu_wasser-teileinzugsgebiete_2 --- conf/bafu.conf.part | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/bafu.conf.part b/conf/bafu.conf.part index 2568f647..f47a8e32 100644 --- a/conf/bafu.conf.part +++ b/conf/bafu.conf.part @@ -38,7 +38,7 @@ source src_ch_bafu_wasser-teileinzugsgebiete_2 : def_searchable_features { sql_db = bafu_dev sql_query = \ - SELECT teilezgnr::bigint as id \ + SELECT row_number() OVER(ORDER BY teilezgnr asc) as id \ , teilezgnr as label \ , 'feature' as origin \ , remove_accents(coalesce(gwlnr::text,' ')||' '||coalesce(teilezgnr::text,' ')||' '||coalesce(ext_ezg_flussgb::text,' ')) as detail \