Make tasks indexed by id instead of type

The caas migrate logic is broken at this point until it uses new
task framework
This commit is contained in:
Girish Ramakrishnan
2018-12-08 18:50:06 -08:00
parent cfb68a0511
commit d8225ad653
12 changed files with 174 additions and 107 deletions

View File

@@ -202,7 +202,8 @@ CREATE TABLE IF NOT EXISTS subdomains(
UNIQUE (subdomain, domain));
CREATE TABLE IF NOT EXISTS tasks(
id VARCHAR(32) NOT NULL UNIQUE,
id int NOT NULL AUTO_INCREMENT,
type VARCHAR(32) NOT NULL,
percent INTEGER DEFAULT 0,
message TEXT,
errorMessage TEXT,