X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/492186716f52f449e7588710dbcdb07af6fcbbc0..b9b6b075cc3cc12daa5ba48742e010b3e5e9550e:/docs/admin/Migration.md?ds=sidebyside diff --git a/docs/admin/Migration.md b/docs/admin/Migration.md index 47844814..fc309af1 100644 --- a/docs/admin/Migration.md +++ b/docs/admin/Migration.md @@ -17,6 +17,17 @@ breaking changes. **Please read them before running the migration.** ## 3.6.0 -> 3.7.0 +### New format and name of configuration file + +The configuration for an import is now saved in a `.env` file in the project +directory. This file follows the dotenv format. For more information, see +the [installation chapter](Import.md#configuration-setup-in-env). + +To migrate to the new system, create a new project directory, add the `.env` +file and port your custom configuration from `settings/local.php`. Most +settings are named similar and only have received a `NOMINATIM_` prefix. +Use the default settings in `settings/env.defaults` as a reference. + ### New location for data files External data files for Wikipedia importance, postcodes etc. are no longer @@ -113,6 +124,14 @@ configuration file, run the following command after updating: ./utils/setup.php --setup-website ``` +### Update SQL code + +To update the SQL code to the leatest version run: + +``` +./utils/setup.php --create-functions --enable-diff-updates --create-partition-functions +``` + ## 3.4.0 -> 3.5.0 ### New Wikipedia/Wikidata importance tables