]> lifelog.hopto.org Git - LifeLog.git/commitdiff
To new 1.9 + VW_LOG migration implemented.
authorWill Budicm <redacted>
Wed, 20 May 2020 05:54:13 +0000 (15:54 +1000)
committerWill Budicm <redacted>
Wed, 20 May 2020 05:54:13 +0000 (15:54 +1000)
htdocs/cgi-bin/login_ctr.cgi

index 7f783dd2a05c480b5635021f56b2a5e24da0e957..073fe617eecd41d07b5a0e1ddcb6eb0d453fc113 100755 (executable)
@@ -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) {