You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models
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>
1 year ago
..
activities refactor some functions to support ctx as first parameter (#21878) 1 year ago
admin Implement FSFE REUSE for golang files (#21840) 1 year ago
asymkey refactor some functions to support ctx as first parameter (#21878) 1 year ago
auth Use random bytes to generate access token (#21959) 1 year ago
avatars Implement FSFE REUSE for golang files (#21840) 1 year ago
db Check primary keys for all tables and drop ForeignReference (#21721) 1 year ago
fixtures Check primary keys for all tables and drop ForeignReference (#21721) 1 year ago
git Add doctor command for full GC of LFS (#21978) 1 year ago
issues Check primary keys for all tables and drop ForeignReference (#21721) 1 year ago
migrations Check primary keys for all tables and drop ForeignReference (#21721) 1 year ago
organization Secrets storage with SecretKey encrypted (#22142) 1 year ago
packages Fix condition for is_internal (#22095) 1 year ago
perm Rename almost all Ctx functions (#22071) 1 year ago
project Rename almost all Ctx functions (#22071) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 1 year ago
repo Add a simple test for external renderer (#20033) 1 year ago
secret Secrets storage with SecretKey encrypted (#22142) 1 year ago
system Implement FSFE REUSE for golang files (#21840) 1 year ago
unit Implement FSFE REUSE for golang files (#21840) 1 year ago
unittest Implement FSFE REUSE for golang files (#21840) 1 year ago
user refactor some functions to support ctx as first parameter (#21878) 1 year ago
webhook Implement FSFE REUSE for golang files (#21840) 1 year ago
error.go Implement FSFE REUSE for golang files (#21840) 1 year ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 1 year ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
main_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 1 year ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 1 year ago
org.go refactor some functions to support ctx as first parameter (#21878) 1 year ago
org_team.go refactor some functions to support ctx as first parameter (#21878) 1 year ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
org_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
repo.go Secrets storage with SecretKey encrypted (#22142) 1 year ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 1 year ago
repo_collaboration_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
repo_transfer.go Rename almost all Ctx functions (#22071) 1 year ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 1 year ago
user.go Implement FSFE REUSE for golang files (#21840) 1 year ago