1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-12-26 04:24:07 +00:00

Prepare tables for changelog.

This commit is contained in:
Markus Birth 2018-11-15 12:31:15 +01:00
parent 669618b46c
commit 1e1bfcddd3

View File

@ -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;