]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
give www-data select rights on query_log
[nominatim.git] / utils / setup.php
index a203db7bd80b922f9d710828af733c322bac7afb..5cdb27fbc28df60fc7ccbe04e312207f5da602d0 100755 (executable)
                $pgver = (float) CONST_Postgresql_Version;
                if ($pgver < 9.1) {
                        pgsqlRunScriptFile(CONST_Path_Postgresql_Contrib.'/hstore.sql');
+                       pgsqlRunScriptFile(CONST_BasePath.'/sql/hstore_compatability_9_0.sql');
                } else {
                        pgsqlRunScript('CREATE EXTENSION hstore');
                }
                pg_query($oDB->connection, 'TRUNCATE import_status');
                $sSQL = "INSERT INTO import_status VALUES('".$aRepMatch[2]."')";
                pg_query($oDB->connection, $sSQL);
-               exit;
        }
 
        if ($aCMDResult['index'] || $aCMDResult['all'])