Skip to content

Commit

Permalink
update hints
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmail committed Nov 2, 2023
1 parent 673337b commit 58e5f5e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions nominatim/tools/check_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,14 @@ def check_connection(conn: Any, config: Configuration) -> CheckResult:
Database version ({db_version}) doesn't match Nominatim version ({nom_version})
Hints:
* Are you connecting to the right database?
* Have you run all migrations?
* Are you connecting to the correct database?
A) If database version is lower than Nominatim version: Run migrations
nominatim admin --migrate
B) If Nominatim version is lower than database version: Update Nominatim
For both check the Migration chapter of the Administration Guide.
Project directory: {config.project_dir}
Current setting of NOMINATIM_DATABASE_DSN: {config.DATABASE_DSN}
Expand Down Expand Up @@ -181,7 +187,7 @@ def check_database_version(conn: Connection, config: Configuration) -> CheckResu
placex table not found
Hints:
* Are you connecting to the right database?
* Are you connecting to the correct database?
* Did the import process finish without errors?
Project directory: {config.project_dir}
Expand Down

0 comments on commit 58e5f5e

Please sign in to comment.