X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3c9eeb11fa360ae38e7819e1505afa22add1f52a..80f6aca0c22984b79e24a19bc602258dd3caeb34:/docs/admin/Migration.md diff --git a/docs/admin/Migration.md b/docs/admin/Migration.md index 21bbb51a..dc94310b 100644 --- a/docs/admin/Migration.md +++ b/docs/admin/Migration.md @@ -6,7 +6,47 @@ to newer versions of Nominatim. SQL statements should be executed from the PostgreSQL commandline. Execute `psql nominatim` to enter command line mode. -## 3.5.0 -> master +## 3.6.0 -> master + +### Status table contains now time zone information + +The `import_status` table has been changed to include timezone information +with the time stamp. You need to alter an existing table before running +any replication functions with: + +```sql +ALTER TABLE import_status ALTER COLUMN lastimportdate TYPE timestamp with time zone; +``` + +### New location for data files + +External data files for Wikipedia importance, postcodes etc. are no longer +expected to reside in the source tree by default. Instead they will be searched +in the project directory. If you have an automated setup script you must +either adapt the download location or explicitly set the location of the +files to the old place in your `.env`. + +### Introducing `nominatim` command line tool + +The various php utilities have been replaced with a single `nominatim` +command line tool. Make sure to adapt any scripts. There is no direct 1:1 +matching between the old utilities and the commands of nominatim CLI. The +following list gives you a list of nominatim sub-commands that contain +functionality of each script: + +* ./utils/setup.php: `import`, `freeze`, `refresh` +* ./utils/update.php: `replication`, `add-data`, `index`, `refresh` +* ./utils/specialphrases.php: `special-phrases` +* ./utils/check_import_finished.php: `admin` +* ./utils/warm.php: `admin` +* ./utils/export.php: `export` + +Try `nominatim --help` for more information about each subcommand. + +`./utils/query.php` no longer exists in its old form. `nominatim search` +provides a replacement but returns different output. + +## 3.5.0 -> 3.6.0 ### Change of layout of search_name_* tables