add deprecation warnings throughout docs

This commit is contained in:
Sarah Hoffmann
2024-08-08 11:53:27 +02:00
parent a14ab1c08c
commit a2a44b875a
6 changed files with 28 additions and 6 deletions

View File

@@ -1,5 +1,8 @@
# Deploying Nominatim using the PHP frontend # Deploying Nominatim using the PHP frontend
!!! danger
The PHP frontend is deprecated and will be removed in Nominatim 5.0.
The Nominatim API is implemented as a PHP application. The `website/` directory The Nominatim API is implemented as a PHP application. The `website/` directory
in the project directory contains the configured website. You can serve this in the project directory contains the configured website. You can serve this
in a production environment with any web server that is capable to run in a production environment with any web server that is capable to run

View File

@@ -302,6 +302,9 @@ To run Nominatim via webservers like Apache or nginx, please continue reading
#### Testing the PHP frontend #### Testing the PHP frontend
!!! danger
The PHP fronted is deprecated and will be removed in Nominatim 5.0.
You can run a small test server with the PHP frontend like this: You can run a small test server with the PHP frontend like this:
```sh ```sh

View File

@@ -72,7 +72,7 @@ For running the Python frontend:
* [starlette](https://www.starlette.io/) * [starlette](https://www.starlette.io/)
* [uvicorn](https://www.uvicorn.org/) * [uvicorn](https://www.uvicorn.org/)
For running the legacy PHP frontend: For running the legacy PHP frontend (deprecated, will be removed in Nominatim 5.0):
* [PHP](https://php.net) (7.3+) * [PHP](https://php.net) (7.3+)
* PHP-pgsql * PHP-pgsql
@@ -194,6 +194,7 @@ sudo make install
cmake: `cmake -DBUILD_MODULE=on ../Nominatim`. To compile the module cmake: `cmake -DBUILD_MODULE=on ../Nominatim`. To compile the module
you need to have the server development headers for PostgreSQL installed. you need to have the server development headers for PostgreSQL installed.
On Ubuntu/Debian run: `sudo apt install postgresql-server-dev-<postgresql version>` On Ubuntu/Debian run: `sudo apt install postgresql-server-dev-<postgresql version>`
The legacy tokenizer is deprecated and will be removed in Nominatim 5.0
Nominatim installs itself into `/usr/local` per default. To choose a different Nominatim installs itself into `/usr/local` per default. To choose a different

View File

@@ -1,12 +1,17 @@
# Database Migrations # Database Migrations
Since version 3.7.0 Nominatim offers automatic migrations. Please follow Nominatim offers automatic migrations since version 3.7. Please follow
the following steps: the following steps:
* stop any updates that are potentially running * Stop any updates that are potentially running
* update Nominatim to the newer version * Update the backend: `pip install -U nominatim-db`
* go to your project directory and run `nominatim admin --migrate` * Go to your project directory and run `nominatim admin --migrate`
* (optionally) restart updates * Update the frontend: `pip install -U nominatim-api`
* (optionally) Restart updates
If you are still using CMake for the installation of Nominatim, then you
need to update the software in one step before migrating the database.
It is not recommended to do this while the machine is serving requests.
Below you find additional migrations and hints about other structural and Below you find additional migrations and hints about other structural and
breaking changes. **Please read them before running the migration.** breaking changes. **Please read them before running the migration.**

View File

@@ -12,11 +12,16 @@ To use a SQLite database, you need to install:
* SQLite (>= 3.30) * SQLite (>= 3.30)
* Spatialite (> 5.0.0) * Spatialite (> 5.0.0)
* aiosqlite
On Ubuntu/Debian, you can run: On Ubuntu/Debian, you can run:
sudo apt install sqlite3 libsqlite3-mod-spatialite libspatialite7 sudo apt install sqlite3 libsqlite3-mod-spatialite libspatialite7
Install the aiosqlite Python package in your virtual environment:
/srv/nominatim-venv/bin/pip install aiosqlite
## Creating a new SQLite database ## Creating a new SQLite database
Nominatim cannot import directly into SQLite database. Instead you have to Nominatim cannot import directly into SQLite database. Instead you have to

View File

@@ -17,6 +17,11 @@ they can be configured.
## Legacy tokenizer ## Legacy tokenizer
!!! danger
The Legacy tokenizer is deprecated and will be removed in Nominatim 5.0.
If you still use a database with the legacy tokenizer, you must reimport
it using the ICU tokenizer below.
The legacy tokenizer implements the analysis algorithms of older Nominatim The legacy tokenizer implements the analysis algorithms of older Nominatim
versions. It uses a special Postgresql module to normalize names and queries. versions. It uses a special Postgresql module to normalize names and queries.
This tokenizer is automatically installed and used when upgrading an older This tokenizer is automatically installed and used when upgrading an older