X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f24b904f9ad744a0d79de98588f13ead918981c5..baefb4062f31ebf5668abc0736b19bd8d010e4ed:/utils/setup.php?ds=sidebyside 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