]> git.openstreetmap.org Git - nominatim.git/commitdiff
Migration.md - admin also need to run recreate db functions
authormarc tobias <mtmail@gmx.net>
Tue, 30 Jun 2020 14:49:38 +0000 (16:49 +0200)
committermarc tobias <mtmail@gmx.net>
Wed, 1 Jul 2020 14:46:54 +0000 (16:46 +0200)
docs/admin/Migration.md

index f3858cf6963ff0b1bfbc244359b83e18cf3e7818..c7d3fe18807d856a764130e58ad0dad22d97579d 100644 (file)
@@ -21,6 +21,18 @@ follows:
 
 The last step takes about 10 hours on the full planet.
 
 
 The last step takes about 10 hours on the full planet.
 
+Remove one function (it will be recreated in the next step):
+
+```sql
+DROP FUNCTION create_country(hstore,character varying);
+```
+
+Finally, update all SQL functions:
+
+```sh
+./utils/setup.php --create-functions --enable-diff-updates --create-partition-functions
+```
+
 ## 3.3.0 -> 3.4.0
 
 ### Reorganisation of location_area_country table
 ## 3.3.0 -> 3.4.0
 
 ### Reorganisation of location_area_country table
@@ -38,6 +50,12 @@ CREATE INDEX idx_location_area_country_geometry ON location_area_country USING G
 CREATE INDEX idx_location_area_country_place_id ON location_area_country USING BTREE (place_id);
 ```
 
 CREATE INDEX idx_location_area_country_place_id ON location_area_country USING BTREE (place_id);
 ```
 
+Finally, update all SQL functions:
+
+```sh
+./utils/setup.php --create-functions --enable-diff-updates --create-partition-functions
+```
+
 ## 3.2.0 -> 3.3.0
 
 ### New database connection string (DSN) format
 ## 3.2.0 -> 3.3.0
 
 ### New database connection string (DSN) format