1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-11-14 00:46:45 +00:00

Added seenDate also added note about FW_ID.

This commit is contained in:
Markus Birth 2017-11-04 00:56:55 +01:00
parent 2786b4ceda
commit 44cd418c7b
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -47,7 +47,7 @@ CREATE TABLE "updates" (
"svn" TEXT, -- version info from <SVN> field "svn" TEXT, -- version info from <SVN> field
"pubDate" INTEGER, -- published date "pubDate" INTEGER, -- published date
"publisher" TEXT, -- publisher "publisher" TEXT, -- publisher
"fwId" TEXT, -- <FW_ID> "fwId" TEXT, -- <FW_ID> (CHANGES FOR THE SAME FILE_ID!!!) MAYBE MOVE TO update_map
"file_id" TEXT, -- <FILE_ID> of first file "file_id" TEXT, -- <FILE_ID> of first file
"file_name" TEXT, -- filename of first file "file_name" TEXT, -- filename of first file
"file_size" INTEGER, -- size of first file "file_size" INTEGER, -- size of first file
@ -59,5 +59,6 @@ CREATE TABLE "updates" (
-- Maps update files to devices -- Maps update files to devices
CREATE TABLE "update_map" ( CREATE TABLE "update_map" (
"deviceId" INTEGER REFERENCES "devices" ("deviceId"), "deviceId" INTEGER REFERENCES "devices" ("deviceId"),
"updateId" INTEGER REFERENCES "updates" ("updateId") "updateId" INTEGER REFERENCES "updates" ("updateId"),
"seenDate" INTEGER -- timestamp when this record was added
); );