Allow for postgis being in the default template - not an error if it already is installed

This commit is contained in:
Brian Quinion
2015-10-07 14:44:59 +01:00
parent f24b904f9a
commit 347f8e57c7
2 changed files with 2 additions and 2 deletions

View File

@@ -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