]> lifelog.hopto.org Git - LifeLog.git/commitdiff
temp table drop if found.
authorWill Budicm <redacted>
Mon, 31 Aug 2020 04:21:38 +0000 (14:21 +1000)
committerWill Budicm <redacted>
Mon, 31 Aug 2020 04:21:38 +0000 (14:21 +1000)
htdocs/cgi-bin/login_ctr.cgi

index 2a5271784e8c908bfc16a554960e67f8e30ab491..ef4f4fdfe4ef3b4ff5ef5a5faa87d3b6d17955dc 100755 (executable)
@@ -207,7 +207,9 @@ sub checkCreateTables {
     my $hasNotesTbl = $curr_tables{'NOTES'};
     my @annons = Settings::anons();
     LifeLogException -> throw("Annons!") if (@annons==0);#We even added above the backup_enabled anon, so WTF?
-
+    if($curr_tables{'life_log_temp_table'}){#A possible of some old migration lingering...
+       $db->do('DROP TABLE `life_log_temp_table`;');
+    }
     # Reflect anons to db config.
     $sql = "SELECT ID, NAME, VALUE FROM CONFIG WHERE";
     foreach my $ana(@annons){$sql .=  " NAME LIKE '$ana' OR";};$sql =~ s/OR$//; $sql .=';';