]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Fixed auto DB creation due to ne field AMMOUNT.
authorwbudic <redacted>
Fri, 19 Oct 2018 06:41:07 +0000 (17:41 +1100)
committerwbudic <redacted>
Fri, 19 Oct 2018 06:41:07 +0000 (17:41 +1100)
htdocs/cgi-bin/main.cgi

index bb3ed77ce7b187b6bc8f59f4409fa0ead111d3f2..59360e20632e5d8182819d110d57f1980c949179 100755 (executable)
@@ -349,9 +349,9 @@ sub checkCreateTables(){
                                              print "<p>Error->"& $DBI::errstri &"</p>";
                                } 
 
-                               $sth = $dbh->prepare('INSERT INTO LOG VALUES (?,?,?)');
+                               $sth = $dbh->prepare('INSERT INTO LOG VALUES (?,?,?,?)');
 
-                               $sth->execute( 3, $today, "DB Created!");
+                               $sth->execute( 3, $today, "DB Created!",0);
 
                                
                                 $stmt = qq(