show versions if database version doesn't match seeddms version

This commit is contained in:
Uwe Steinmann 2021-08-05 08:41:16 +02:00
parent 817433638b
commit 0f79234012

View File

@ -49,6 +49,9 @@ $dms = new SeedDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffse
if(!$settings->_doNotCheckDBVersion && !$dms->checkVersion()) {
echo "Database update needed.";
if($v = $dms->getDBVersion()) {
echo " Database has version ".$v['major'].".".$v['minor'].".".$v['subminor']." but this is SeedDMS ".$dms->version.".";
}
exit;
}