Make start/stop just a installation code

the runState now just tracks if an app is stopped.
This commit is contained in:
Girish Ramakrishnan
2019-09-22 00:20:12 -07:00
parent ff1f448860
commit f3341f4b7f
4 changed files with 80 additions and 63 deletions

View File

@@ -64,8 +64,8 @@ CREATE TABLE IF NOT EXISTS clients(
CREATE TABLE IF NOT EXISTS apps(
id VARCHAR(128) NOT NULL UNIQUE,
appStoreId VARCHAR(128) NOT NULL,
installationState VARCHAR(512) NOT NULL,
runState VARCHAR(512),
installationState VARCHAR(512) NOT NULL, // the active task on the app
runState VARCHAR(512), // if the app is stopped
health VARCHAR(128),
healthTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, // when the app last responded
containerId VARCHAR(128),