mirror of
https://github.com/mbirth/tcl_update_db.git
synced 2024-12-26 12:34:07 +00:00
More info about update files.
This commit is contained in:
parent
dc62a4b5dd
commit
37a0433796
@ -6,7 +6,6 @@ CREATE TABLE "families" (
|
|||||||
"name" TEXT -- e.g. KEYone, Motion
|
"name" TEXT -- e.g. KEYone, Motion
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
-- Needs SQLite 3.7 or newer
|
-- Needs SQLite 3.7 or newer
|
||||||
INSERT INTO "families" ("name") VALUES
|
INSERT INTO "families" ("name") VALUES
|
||||||
("KEYone"),
|
("KEYone"),
|
||||||
@ -19,6 +18,7 @@ CREATE TABLE "models" (
|
|||||||
"name" TEXT -- e.g. BBB100-1
|
"name" TEXT -- e.g. BBB100-1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Needs SQLite 3.7 or newer
|
||||||
INSERT INTO "models" VALUES
|
INSERT INTO "models" VALUES
|
||||||
(0, "BBB100-1"),
|
(0, "BBB100-1"),
|
||||||
(0, "BBB100-2"),
|
(0, "BBB100-2"),
|
||||||
@ -32,15 +32,26 @@ CREATE TABLE "devices" (
|
|||||||
"name" TEXT -- e.g. Unlocked USA, Black KEYone
|
"name" TEXT -- e.g. Unlocked USA, Black KEYone
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Needs SQLite 3.7 or newer
|
||||||
INSERT INTO "devices" VALUES
|
INSERT INTO "devices" VALUES
|
||||||
("PRD-63117-011", 1, "Unlocked EMEA"),
|
("PRD-63117-011", 1, "Unlocked EMEA"),
|
||||||
("PRD-63116-001", 0, "Unlocked USA")
|
("PRD-63116-001", 0, "Unlocked USA")
|
||||||
;
|
;
|
||||||
|
|
||||||
|
-- we only care about the first file for now
|
||||||
|
-- a separate "files" table might get introduced later
|
||||||
CREATE TABLE "updates" (
|
CREATE TABLE "updates" (
|
||||||
"updateId" INTEGER PRIMARY KEY AUTOINCREMENT,
|
"updateId" INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
"fv" TEXT, -- version, e.g. AAQ302
|
"tv" TEXT, -- target version, e.g. AAQ302
|
||||||
"sha1" TEXT, -- SHA1 checksum of file
|
"fv" TEXT, -- from version (only for OTA)
|
||||||
|
"svn" TEXT, -- version info from <SVN> field
|
||||||
|
"pubDate" INTEGER, -- published date
|
||||||
|
"publisher" TEXT, -- publisher
|
||||||
|
"fwId" TEXT, -- <FW_ID>
|
||||||
|
"file_id" TEXT, -- <FILE_ID> of first file
|
||||||
|
"file_name" TEXT, -- filename of first file
|
||||||
|
"file_size" INTEGER, -- size of first file
|
||||||
|
"file_sha1" TEXT, -- SHA1 checksum of first file
|
||||||
"type" TEXT, -- FULL or OTA
|
"type" TEXT, -- FULL or OTA
|
||||||
"note" TEXT, -- some note for this file (optional)
|
"note" TEXT, -- some note for this file (optional)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user