forked from hans/Nominatim
extensions where introduced in postgresql in 9.1, not in 9.0
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
$oDB =& getDB();
|
$oDB =& getDB();
|
||||||
passthru('createlang plpgsql '.$aDSNInfo['database']);
|
passthru('createlang plpgsql '.$aDSNInfo['database']);
|
||||||
$pgver = (float) CONST_Postgresql_Version;
|
$pgver = (float) CONST_Postgresql_Version;
|
||||||
if ($pgver < 9.0) {
|
if ($pgver < 9.1) {
|
||||||
pgsqlRunScriptFile(CONST_Path_Postgresql_Contrib.'/hstore.sql');
|
pgsqlRunScriptFile(CONST_Path_Postgresql_Contrib.'/hstore.sql');
|
||||||
} else {
|
} else {
|
||||||
pgsqlRunScript('CREATE EXTENSION hstore');
|
pgsqlRunScript('CREATE EXTENSION hstore');
|
||||||
|
|||||||
Reference in New Issue
Block a user