mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
Allow for postgis being in the default template - not an error if it already is installed
This commit is contained in:
Submodule osm2pgsql updated: 8179cdb67e...55b6b4302c
@@ -134,7 +134,7 @@
|
|||||||
pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/postgis.sql');
|
pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/postgis.sql');
|
||||||
pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/spatial_ref_sys.sql');
|
pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/spatial_ref_sys.sql');
|
||||||
} else {
|
} else {
|
||||||
pgsqlRunScript('CREATE EXTENSION postgis');
|
pgsqlRunScript('CREATE EXTENSION IF NOT EXISTS postgis');
|
||||||
}
|
}
|
||||||
if ($fPostgisVersion < 2.1) {
|
if ($fPostgisVersion < 2.1) {
|
||||||
// Function was renamed in 2.1 and throws an annoying deprecation warning
|
// Function was renamed in 2.1 and throws an annoying deprecation warning
|
||||||
|
|||||||
Reference in New Issue
Block a user