X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c2aa7a9b439740c2ac6b5f1d532c2375a113e921..98c1b923fc090f830b7b3a575e3d08ba399bd870:/src/nominatim_db/tools/migration.py diff --git a/src/nominatim_db/tools/migration.py b/src/nominatim_db/tools/migration.py index 12abe7fe..80df2932 100644 --- a/src/nominatim_db/tools/migration.py +++ b/src/nominatim_db/tools/migration.py @@ -13,7 +13,7 @@ import logging from ..errors import UsageError from ..config import Configuration from ..db import properties -from ..db.connection import connect, Connection,\ +from ..db.connection import connect, Connection, \ table_exists, register_hstore from ..version import NominatimVersion, NOMINATIM_VERSION, parse_version from ..tokenizer import factory as tokenizer_factory @@ -21,7 +21,8 @@ from . import refresh LOG = logging.getLogger() -_MIGRATION_FUNCTIONS : List[Tuple[NominatimVersion, Callable[..., None]]] = [] +_MIGRATION_FUNCTIONS: List[Tuple[NominatimVersion, Callable[..., None]]] = [] + def migrate(config: Configuration, paths: Any) -> int: """ Check for the current database version and execute migrations,