From: Will Budicm Date: Wed, 20 May 2020 05:54:13 +0000 (+1000) Subject: To new 1.9 + VW_LOG migration implemented. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=313e7fbf01dd1837356fde988eb4da00e10ced7d;p=LifeLog.git To new 1.9 + VW_LOG migration implemented. --- diff --git a/htdocs/cgi-bin/login_ctr.cgi b/htdocs/cgi-bin/login_ctr.cgi index 7f783dd..073fe61 100755 --- a/htdocs/cgi-bin/login_ctr.cgi +++ b/htdocs/cgi-bin/login_ctr.cgi @@ -282,6 +282,10 @@ sub checkCreateTables { #Need to run slow populuate check from config file. $changed = 1; } + elsif($hasLogTbl && $DEF_VERSION > $DB_VERSION && $DB_VERSION < 2.0){ + #dev 1.9 main log view has changed in 1.8..1.9, above scope will perform anyway, its drop, to be recreated later. + $db->do('DROP TABLE VW_LOG;');delete($curr_tables{'VW_LOG'}); + } if(!$hasLogTbl) {