admin: Insert $team assignee in db automatically
This commit is contained in:
parent
f5941dcece
commit
abf0715dbf
4 changed files with 37 additions and 32 deletions
|
|
@ -400,6 +400,8 @@ CREATE TABLE IF NOT EXISTS claim_assignees(
|
|||
`); err != nil {
|
||||
return err
|
||||
}
|
||||
db.Exec(`INSERT INTO claim_assignees VALUES (0, "$team");`)
|
||||
db.Exec(`UPDATE claim_assignees SET id_assignee = 0 WHERE name = "$team";`)
|
||||
if _, err := db.Exec(`
|
||||
CREATE TABLE IF NOT EXISTS claims(
|
||||
id_claim INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
|
|
|
|||
Reference in a new issue