X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/409ded385f10cbe3d32ff20411f48b240bf6f328..503f9d19f19ded024e77e62cddb1d2a22bcac102:/utils/update.php diff --git a/utils/update.php b/utils/update.php old mode 100755 new mode 100644 index 8756f2e5..d8d3efd9 --- a/utils/update.php +++ b/utils/update.php @@ -1,10 +1,9 @@ -#!@PHP_BIN@ -Cq createTable($oDB, 'address_levels'); +} + if ($aResult['import-osmosis'] || $aResult['import-osmosis-all']) { // if (strpos(CONST_Replication_Url, 'download.geofabrik.de') !== false && CONST_Replication_Update_Interval < 86400) { @@ -428,7 +435,7 @@ if ($aResult['import-osmosis'] || $aResult['import-osmosis-all']) { $sSQL = 'INSERT INTO import_osmosis_log'; $sSQL .= '(batchend, batchseq, batchsize, starttime, endtime, event)'; - $sSQL .= " values ('$sBatchEnd',$iEndSequence,$iFileSize,'"; + $sSQL .= " values ('$sBatchEnd',$iEndSequence,NULL,'"; $sSQL .= date('Y-m-d H:i:s', $fCMDStartTime)."','"; $sSQL .= date('Y-m-d H:i:s')."','index')"; var_Dump($sSQL);