do not truncate search_name in reverse-only mode

This commit is contained in:
Sarah Hoffmann 2021-02-26 18:20:53 +01:00
parent 9feb84e426
commit d14a3df10f

View File

@ -191,6 +191,7 @@ def truncate_data_tables(conn, max_word_frequency=None):
cur.execute('TRUNCATE location_property_tiger') cur.execute('TRUNCATE location_property_tiger')
cur.execute('TRUNCATE location_property_osmline') cur.execute('TRUNCATE location_property_osmline')
cur.execute('TRUNCATE location_postcode') cur.execute('TRUNCATE location_postcode')
if conn.table_exists('search_name'):
cur.execute('TRUNCATE search_name') cur.execute('TRUNCATE search_name')
cur.execute('DROP SEQUENCE IF EXISTS seq_place') cur.execute('DROP SEQUENCE IF EXISTS seq_place')
cur.execute('CREATE SEQUENCE seq_place start 100000') cur.execute('CREATE SEQUENCE seq_place start 100000')