gitea/models/db
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
..
install
paginator
common.go
consistency.go
context_test.go
context.go Update go dev dependencies (#22064) 2022-12-08 16:21:37 +08:00
convert.go
engine_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2022-12-23 19:35:43 +08:00
engine.go Update xorm (#22094) 2022-12-10 18:53:32 -05:00
error.go
index_test.go
index.go
iterate_test.go Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
iterate.go
list_options.go
log.go
main_test.go
name.go
search.go
sequence.go
sql_postgres_with_schema.go