upload_status table was not inicialized when create new log database - fixed

This commit is contained in:
Petr Hlozek 2013-12-29 14:09:39 +01:00
parent f99804668d
commit 84893c090d

View File

@ -456,6 +456,25 @@ begin
if fDebugLevel>=1 then Writeln(mQ.SQL.Text);
mQ.ExecSQL;
trmQ.Commit;
trmQ.StartTransaction;
mQ.SQL.Text := 'insert into log_changes (id,cmd) values(1,'+QuotedStr(C_ALLDONE)+')';
if fDebugLevel>=1 then Writeln(mQ.SQL.Text);
mQ.ExecSQL;
mQ.SQL.Text := 'insert into upload_status (logname, id_log_changes) values ('+QuotedStr(C_HAMQTH)+',1)';
if fDebugLevel>=1 then Writeln(mQ.SQL.Text);
mQ.ExecSQL;
mQ.SQL.Text := 'insert into upload_status (logname, id_log_changes) values ('+QuotedStr(C_CLUBLOG)+',1)';
if fDebugLevel>=1 then Writeln(mQ.SQL.Text);
mQ.ExecSQL;
mQ.SQL.Text := 'insert into upload_status (logname, id_log_changes) values ('+QuotedStr(C_HRDLOG)+',1)';
if fDebugLevel>=1 then Writeln(mQ.SQL.Text);
mQ.ExecSQL;
trmQ.Commit;
RefreshLogList(nr)
end;