Skip to content

Commit

Permalink
table schema changed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Apr 6, 2020
1 parent 1f5f7b4 commit d24af9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cvecase.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ var sqlSchemaArr = []string{
`ALTER TABLE case_softwares ADD CONSTRAINT case_softwares_ibfk_1 FOREIGN KEY (case_id) REFERENCES cases (id);`,
`ALTER TABLE case_comments ADD CONSTRAINT case_comments_ibfk_1 FOREIGN KEY (case_id) REFERENCES cases (id);`,
`ALTER TABLE filter_categories ADD CONSTRAINT filter_categories_ibfk_1 FOREIGN KEY (filter_id) REFERENCES filters (id);`,

`ALTER TABLE case_categories ADD INDEX(category)`,
}

// InitDB initializes the DB.
Expand Down

0 comments on commit d24af9a

Please sign in to comment.