X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e1dc4379e0cd100200ac53752442143ca4846fc5..57598a048e9124b905572ed8dc4fa9465b5d38a6:/src/nominatim_db/tools/database_import.py diff --git a/src/nominatim_db/tools/database_import.py b/src/nominatim_db/tools/database_import.py index 415e9d24..a7ee807e 100644 --- a/src/nominatim_db/tools/database_import.py +++ b/src/nominatim_db/tools/database_import.py @@ -98,10 +98,7 @@ def setup_database_skeleton(dsn: str, rouser: Optional[str] = None) -> None: with conn.cursor() as cur: cur.execute('CREATE EXTENSION IF NOT EXISTS hstore') cur.execute('CREATE EXTENSION IF NOT EXISTS postgis') - - postgis_version = postgis_version_tuple(conn) - if postgis_version[0] >= 3: - cur.execute('CREATE EXTENSION IF NOT EXISTS postgis_raster') + cur.execute('CREATE EXTENSION IF NOT EXISTS postgis_raster') conn.commit()