X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bb2bd76f91ed6e4b1530a7fb66553c7fd92afd9d..b1903f0fbf1e41c594be9b20f00b8a621dfe7552:/nominatim/tools/migration.py?ds=sidebyside diff --git a/nominatim/tools/migration.py b/nominatim/tools/migration.py index 8eaad2f7..28a14455 100644 --- a/nominatim/tools/migration.py +++ b/nominatim/tools/migration.py @@ -130,8 +130,7 @@ def add_nominatim_property_table(conn, config, **_): property TEXT, value TEXT); GRANT SELECT ON TABLE nominatim_properties TO {}; - """) - .format(pysql.Identifier(config.DATABASE_WEBUSER))) + """).format(pysql.Identifier(config.DATABASE_WEBUSER))) @_migration(3, 6, 0, 0) def change_housenumber_transliteration(conn, **_): @@ -197,7 +196,7 @@ def install_legacy_tokenizer(conn, config, **_): (table, )) if has_column == 0: cur.execute(pysql.SQL('ALTER TABLE {} ADD COLUMN token_info JSONB') - .format(pysql.Identifier(table))) + .format(pysql.Identifier(table))) tokenizer = tokenizer_factory.create_tokenizer(config, init_db=False, module_name='legacy')