add taskId to tasks table

This commit is contained in:
Girish Ramakrishnan
2019-08-26 14:12:36 -07:00
parent 8af7dbc35a
commit 0d31207ad7
2 changed files with 19 additions and 0 deletions
+2
View File
@@ -88,12 +88,14 @@ CREATE TABLE IF NOT EXISTS apps(
label VARCHAR(128), // display name
tagsJson VARCHAR(2048), // array of tags
dataDir VARCHAR(256) UNIQUE,
taskId INTEGER, // current task
// the following fields do not belong here, they can be removed when we use a queue for apptask
restoreConfigJson VARCHAR(256), // used to pass backupId to restore from to apptask
oldConfigJson TEXT, // used to pass old config to apptask (configure, restore)
updateConfigJson TEXT, // used to pass new config to apptask (update)
FOREIGN KEY(taskId) REFERENCES tasks(id),
PRIMARY KEY(id));
CREATE TABLE IF NOT EXISTS appPortBindings(