From: Eric Bollengier Date: Fri, 24 Mar 2023 06:50:39 +0000 (+0100) Subject: Fix missing JobHisto fields in make_mysql_tables X-Git-Tag: Beta-15.0.0~216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc3d82544c6fab19d64ed21ccf9ac2cd9140f9d;p=thirdparty%2Fbacula.git Fix missing JobHisto fields in make_mysql_tables Manual workaround: ALTER TABLE JobHisto ADD COLUMN RealStartTime DATETIME, ADD COLUMN isVirtualFull TINYINT default 0, ADD COLUMN CompressRatio float default 0, ADD COLUMN Rate float default 0, ADD COLUMN LastReadStorageId Integer default 0, ADD COLUMN LastReadDevice blob, ADD COLUMN WriteStorageId integer default 0, ADD COLUMN WriteDevice blob, ADD COLUMN Encrypted int default 0; --- diff --git a/bacula/src/cats/make_mysql_tables.in b/bacula/src/cats/make_mysql_tables.in index b96c3f8d7..9f20e74ea 100644 --- a/bacula/src/cats/make_mysql_tables.in +++ b/bacula/src/cats/make_mysql_tables.in @@ -348,6 +348,7 @@ CREATE TABLE JobHisto ( StartTime DATETIME, EndTime DATETIME, RealEndTime DATETIME, + RealStartTime DATETIME, -- Time of the job for Virtual Full JobTDate BIGINT UNSIGNED DEFAULT 0, VolSessionId INTEGER UNSIGNED DEFAULT 0, VolSessionTime INTEGER UNSIGNED DEFAULT 0, @@ -366,6 +367,15 @@ CREATE TABLE JobHisto ( Reviewed TINYINT DEFAULT 0, Comment BLOB, FileTable CHAR(20) DEFAULT 'File', + isVirtualFull TINYINT default 0, -- Result of a VirtualFull? + CompressRatio float default 0, -- Compression Ratio + Rate float default 0, -- Job Rate B/s + LastReadStorageId integer default 0, -- Id of the last Storage used to Read + LastReadDevice blob, -- Name of the last Read Device + WriteStorageId integer default 0, -- Id of the Storage used to Write + WriteDevice blob, -- Name of the Write Device + StatusInfo blob, -- Info to determine the error status + Encrypted int default 0, -- 0 n/a, 1 no, 2 fd side, 4 sd side, 6 both INDEX (JobId), INDEX (StartTime), INDEX (JobTDate)