CREATE TABLE FileEvents
(
- Id bigserial,
+ Id INTEGER PRIMARY KEY AUTOINCREMENT,
Time DATETIME DEFAULT current_timestamp, -- Time of the detection
SourceJobId int, -- Can be the Verify job id for example, or the jobid during a restore/backup
JobId int, -- JobId where the file was found. Used for pruning
CREATE TABLE Snapshot (
- SnapshotId serial,
+ SnapshotId INTEGER PRIMARY KEY AUTOINCREMENT,
Name text NOT NULL,
JobId integer default 0,
FileSetId integer default 0,
Device text not null,
Type text not null,
Retention int default 0,
- Comment text,
- primary key (SnapshotId)
+ Comment text
);
CREATE UNIQUE INDEX snapshot_idx ON Snapshot (Device, Volume, Name);
{
char ed1[51];
alist *lst = (alist *)ctx;
- if (sscanf(msg, "snapshotid=%50s", ed1) == 1) {
+ if ( sscanf(msg, "snapshotid=%50s", ed1) == 1
+ || sscanf(msg, "SnapshotId=%50s", ed1) == 1) {
lst->append((void *)(intptr_t) str_to_int64(ed1));
}
}