Table: UpdateResult
Each entry represents an firmware update result (including complete update log file) according to an device specified by MAC address.
ColumnName | DataType | Key | Not Null | Default Value | Comment | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
UpdateResultID | INTEGER | PK | NN | Unique ID of update result | ||||||||||||||||||||||||||||||||||
TimeReceived | INTEGER | NN | Entry timestamp (Unix time) | |||||||||||||||||||||||||||||||||||
Mac | NVARCHAR(12) | NN | Client MAC address | |||||||||||||||||||||||||||||||||||
ClientIdentifier | UNIQUEIDENTIFIER | NN | Unique identifier for client devices and eLux portable sticks | |||||||||||||||||||||||||||||||||||
IntResult | INTEGER | Result
of last update
|
||||||||||||||||||||||||||||||||||||
TextResult | NVARCHAR(max) | Update log file received from client | ||||||||||||||||||||||||||||||||||||
CommandType | INTEGER | 0 | 0: Update 1: Custom command |
|||||||||||||||||||||||||||||||||||
ReservedString1 | NVARCHAR(255) | |||||||||||||||||||||||||||||||||||||
ReservedString2 | NVARCHAR(255) | |||||||||||||||||||||||||||||||||||||
ReservedInt1 | INTEGER | |||||||||||||||||||||||||||||||||||||
ReservedInt2 | INTEGER |
IndexName | IndexType | Columns |
---|---|---|
PRIMARY | PRIMARY | UpdateResultID |
How to create
CREATE TABLE UpdateResult(
UpdateResultID INTEGER NOT NULL,
TimeReceived INTEGER NOT NULL,
Mac NVARCHAR(12) NOT NULL,
ClientIdentifier UNIQUEIDENTIFIER NOT NULL,
IntResult INTEGER,
TextResult NVARCHAR(max),
CommandType INTEGER,
ReservedString1 NVARCHAR(255),
ReservedString2 NVARCHAR(255),
ReservedInt1 INTEGER,
ReservedInt2 INTEGER,
CONSTRAINT PK_UpdateResult
PRIMARY KEY (UpdateResultID));