gitea/models/issues
Jason Song 71ca3067bc
Check primary keys for all tables and drop ForeignReference (#21721)
Some dbs require that all tables have primary keys, see
- #16802
- #21086

We can add a test to keep it from being broken again.

Edit:

~Added missing primary key for `ForeignReference`~ Dropped the
`ForeignReference` table to satisfy the check, so it closes #21086.

More context can be found in comments.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
2022-12-23 19:35:43 +08:00
..
assignees.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
assignees_test.go
comment.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
comment_list.go
comment_test.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
content_history.go
content_history_test.go
dependency.go
dependency_test.go
issue.go Check primary keys for all tables and drop ForeignReference (#21721) 2022-12-23 19:35:43 +08:00
issue_index.go
issue_list.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
issue_list_test.go
issue_lock.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
issue_project.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
issue_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2022-12-23 19:35:43 +08:00
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
issue_xref_test.go
label.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
label_test.go
main_test.go
milestone.go
milestone_test.go
pull.go
pull_list.go
pull_test.go
reaction.go
reaction_test.go
review.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
review_test.go
stopwatch.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
stopwatch_test.go
tracked_time.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
tracked_time_test.go