mirror of
https://github.com/mbirth/tcl_update_db.git
synced 2024-12-26 04:24:07 +00:00
Merge branch 'master' of github.com:mbirth/tcl_update_db
This commit is contained in:
commit
d526eb19a0
@ -32,10 +32,10 @@ document.addEventListener 'DOMContentLoaded', (event) ->
|
|||||||
tt_text = document.querySelector '#tooltip-text'
|
tt_text = document.querySelector '#tooltip-text'
|
||||||
|
|
||||||
ref = event.target.parentNode.dataset.ref
|
ref = event.target.parentNode.dataset.ref
|
||||||
ver = event.target.innerText
|
ver = event.target.innerText.trim()
|
||||||
|
|
||||||
meta = window.metadata[ref]
|
meta = window.metadata[ref]
|
||||||
#console.log("Meta: %o", meta)
|
#console.log("Meta: %o (Ver: %o)", meta, ver)
|
||||||
vermeta = meta['versions'][ver]
|
vermeta = meta['versions'][ver]
|
||||||
|
|
||||||
updateText = ''
|
updateText = ''
|
||||||
|
@ -195,7 +195,9 @@ INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-009", 5, NULL);
|
|||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-010", 5, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-010", 5, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-011", 5, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-011", 5, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-012", 5, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-012", 5, NULL);
|
||||||
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-014", 5, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-015", 5, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-015", 5, NULL);
|
||||||
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-016", 5, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-017", 5, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63736-017", 5, NULL);
|
||||||
|
|
||||||
-- MOTION
|
-- MOTION
|
||||||
@ -208,6 +210,7 @@ INSERT OR IGNORE INTO "devices" VALUES ("PRD-63737-015", 8, NULL);
|
|||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63739-009", 9, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63739-009", 9, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63739-010", 9, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63739-010", 9, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63739-017", 9, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63739-017", 9, NULL);
|
||||||
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63753-001", 10, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63753-002", 10, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63753-002", 10, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63753-003", 10, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63753-003", 10, NULL);
|
||||||
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63753-008", 10, NULL);
|
INSERT OR IGNORE INTO "devices" VALUES ("PRD-63753-008", 10, NULL);
|
||||||
|
@ -27,14 +27,14 @@ CREATE VIEW "full_device_names" AS
|
|||||||
-- we only care about the first file for now
|
-- we only care about the first file for now
|
||||||
CREATE TABLE "files" (
|
CREATE TABLE "files" (
|
||||||
"sha1" TEXT UNIQUE PRIMARY KEY, -- checksum of file
|
"sha1" TEXT UNIQUE PRIMARY KEY, -- checksum of file
|
||||||
"file_name" TEXT, -- filename of file
|
"file_name" TEXT, -- filename of file
|
||||||
"file_size" INTEGER, -- size
|
"file_size" INTEGER, -- size
|
||||||
"type" TEXT, -- FULL(4) or OTA(2) update
|
"type" TEXT, -- FULL(4) or OTA(2) update
|
||||||
"fv" TEXT, -- from version (only for OTA)
|
"fv" TEXT, -- from version (only for OTA)
|
||||||
"tv" TEXT, -- target version, e.g. AAQ302
|
"tv" TEXT, -- target version, e.g. AAQ302
|
||||||
"note" TEXT, -- description of file (optional)
|
"note" TEXT, -- description of file (optional)
|
||||||
"published_first" INTEGER, -- stamp of earliest pubdate
|
"published_first" TEXT, -- ISO 8601 stamp of earliest pubdate
|
||||||
"published_last" INTEGER -- stamp of latest pubdate
|
"published_last" TEXT -- ISO 8601 stamp of latest pubdate
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE "updates" (
|
CREATE TABLE "updates" (
|
||||||
@ -42,9 +42,9 @@ CREATE TABLE "updates" (
|
|||||||
"curef" TEXT, -- PRD number
|
"curef" TEXT, -- PRD number
|
||||||
"update_desc" TEXT,
|
"update_desc" TEXT,
|
||||||
"svn" TEXT, -- version info from <SVN> field
|
"svn" TEXT, -- version info from <SVN> field
|
||||||
"seenDate" INTEGER, -- date added to db
|
"seenDate" TEXT, -- ISO 8601 date added to db
|
||||||
"revoked" INTEGER, -- (bool) 1 = firmware revoked
|
"revoked" INTEGER, -- (bool) 1 = firmware revoked
|
||||||
"pubDate" INTEGER, -- published date
|
"pubDate" TEXT, -- ISO 8601 published date
|
||||||
"publisher" TEXT, -- publisher
|
"publisher" TEXT, -- publisher
|
||||||
"num_files" INTEGER, -- number of files total
|
"num_files" INTEGER, -- number of files total
|
||||||
"fwId" TEXT, -- <FW_ID> (CHANGES FOR THE SAME FILE_ID!!!) MAYBE MOVE TO update_map
|
"fwId" TEXT, -- <FW_ID> (CHANGES FOR THE SAME FILE_ID!!!) MAYBE MOVE TO update_map
|
||||||
@ -57,6 +57,20 @@ CREATE UNIQUE INDEX "index_updates" ON "updates" (
|
|||||||
"file_id"
|
"file_id"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE TABLE "changelog" (
|
||||||
|
"fv" TEXT, -- from version or NULL
|
||||||
|
"tv" TEXT NOT NULL, -- target version
|
||||||
|
"note_en" TEXT, -- update note
|
||||||
|
"note_ja" TEXT,
|
||||||
|
"note_zh" TEXT,
|
||||||
|
"note_ko" TEXT
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE TABLE "versionmap" (
|
||||||
|
"curef" TEXT REFERENCES "devices" ("curef"), -- PRD number
|
||||||
|
"tv" TEXT REFERENCES "changelog" ("tv") -- version
|
||||||
|
);
|
||||||
|
|
||||||
CREATE VIEW "updates_files" AS
|
CREATE VIEW "updates_files" AS
|
||||||
SELECT * FROM "updates" u
|
SELECT * FROM "updates" u
|
||||||
LEFT JOIN "files" f ON u.file_sha1=f.sha1;
|
LEFT JOIN "files" f ON u.file_sha1=f.sha1;
|
||||||
|
Loading…
Reference in New Issue
Block a user