mirror of
https://github.com/mbirth/tcl_update_db.git
synced 2024-12-27 04:54:08 +00:00
Use one table for all update files. Added mapping table.
This commit is contained in:
parent
f2c2942d9c
commit
570ace7307
@ -37,9 +37,16 @@ INSERT INTO "devices" VALUES
|
|||||||
("PRD-63116-001", 0, "Unlocked USA")
|
("PRD-63116-001", 0, "Unlocked USA")
|
||||||
;
|
;
|
||||||
|
|
||||||
CREATE TABLE "otas" (
|
CREATE TABLE "updates" (
|
||||||
"otaId" INTEGER PRIMARY KEY AUTOINCREMENT,
|
"updateId" INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
"fv" TEXT, -- e.g. AAQ302
|
"fv" TEXT, -- version, e.g. AAQ302
|
||||||
"sha1" TEXT -- SHA1 checksum of OTA file
|
"sha1" TEXT, -- SHA1 checksum of file
|
||||||
|
"type" TEXT, -- FULL or OTA
|
||||||
|
"note" TEXT, -- some note for this file (optional)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Maps update files to devices
|
||||||
|
CREATE TABLE "update_map" (
|
||||||
|
"deviceId" INTEGER REFERENCES "devices" ("deviceId"),
|
||||||
|
"updateId" INTEGER REFERENCES "updates" ("updateId")
|
||||||
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user