do not check for extra housenumber index for reverse-only

Also adds a database check for reverse only import to the CI.
This commit is contained in:
Sarah Hoffmann
2021-04-27 10:14:26 +02:00
parent 1fd483643b
commit c8fb25201a
2 changed files with 9 additions and 5 deletions

View File

@@ -94,14 +94,14 @@ def _get_indexes(conn):
indexes.extend(('idx_search_name_nameaddress_vector',
'idx_search_name_name_vector',
'idx_search_name_centroid'))
if conn.server_version_tuple() >= (11, 0, 0):
indexes.extend(('idx_placex_housenumber',
'idx_osmline_parent_osm_id_with_hnr'))
if conn.table_exists('place'):
indexes.extend(('idx_placex_pendingsector',
'idx_location_area_country_place_id',
'idx_place_osm_unique'
))
if conn.server_version_tuple() >= (11, 0, 0):
indexes.extend(('idx_placex_housenumber',
'idx_osmline_parent_osm_id_with_hnr'))
return indexes