X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/db3ced17bbfff00411f506d8c84419c875959d5e..cf69daaafb1893da876ef8541fc11a4b1d3122c1:/lib-php/Status.php diff --git a/lib-php/Status.php b/lib-php/Status.php index a276c4d5..2d9e78db 100644 --- a/lib-php/Status.php +++ b/lib-php/Status.php @@ -56,4 +56,10 @@ class Status return $iDataDateEpoch; } + + public function databaseVersion() + { + $sSQL = 'SELECT value FROM nominatim_properties WHERE property = \'database_version\''; + return $this->oDB->getOne($sSQL); + } }