This commit is contained in:
shoopea 2019-05-18 22:36:04 +08:00
parent 850de73623
commit 5adb0b60b1

2
sql.go
View File

@ -270,6 +270,8 @@ func initDB() {
,ended TIMESTAMP ,ended TIMESTAMP
,payload VARCHAR(4000) ,payload VARCHAR(4000)
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE ,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
,KEY (is_done)
,KEY (in_work)
,KEY (user_id) ,KEY (user_id)
) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`) ) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`)
failOnError(err, "initDB : create table obj_job") failOnError(err, "initDB : create table obj_job")