X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f24b904f9ad744a0d79de98588f13ead918981c5..347f8e57c7c62de865b1bb35e72de7e3b2550d48:/utils/setup.php diff --git a/utils/setup.php b/utils/setup.php index 90374e74..eff7b71b 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -134,7 +134,7 @@ pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/postgis.sql'); pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/spatial_ref_sys.sql'); } else { - pgsqlRunScript('CREATE EXTENSION postgis'); + pgsqlRunScript('CREATE EXTENSION IF NOT EXISTS postgis'); } if ($fPostgisVersion < 2.1) { // Function was renamed in 2.1 and throws an annoying deprecation warning