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

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 .

More context can be found in comments.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
..
activities refactor some functions to support ctx as first parameter ()
admin Implement FSFE REUSE for golang files ()
asymkey refactor some functions to support ctx as first parameter ()
auth Use random bytes to generate access token ()
avatars Implement FSFE REUSE for golang files ()
db Check primary keys for all tables and drop ForeignReference ()
fixtures Check primary keys for all tables and drop ForeignReference ()
git Add doctor command for full GC of LFS ()
issues Check primary keys for all tables and drop ForeignReference ()
migrations Check primary keys for all tables and drop ForeignReference ()
organization Secrets storage with SecretKey encrypted ()
packages Fix condition for is_internal ()
perm Rename almost all Ctx functions ()
project Rename almost all Ctx functions ()
pull refactor some functions to support ctx as first parameter ()
repo Add a simple test for external renderer ()
secret Secrets storage with SecretKey encrypted ()
system Implement FSFE REUSE for golang files ()
unit Implement FSFE REUSE for golang files ()
unittest Implement FSFE REUSE for golang files ()
user refactor some functions to support ctx as first parameter ()
webhook Implement FSFE REUSE for golang files ()
error.go Implement FSFE REUSE for golang files ()
fixture_generation.go Implement FSFE REUSE for golang files ()
fixture_test.go Implement FSFE REUSE for golang files ()
main_test.go Implement FSFE REUSE for golang files ()
migrate.go Check primary keys for all tables and drop ForeignReference ()
migrate_test.go Check primary keys for all tables and drop ForeignReference ()
org.go refactor some functions to support ctx as first parameter ()
org_team.go refactor some functions to support ctx as first parameter ()
org_team_test.go Implement FSFE REUSE for golang files ()
org_test.go Implement FSFE REUSE for golang files ()
repo.go Secrets storage with SecretKey encrypted ()
repo_collaboration.go refactor some functions to support ctx as first parameter ()
repo_collaboration_test.go Implement FSFE REUSE for golang files ()
repo_test.go Implement FSFE REUSE for golang files ()
repo_transfer.go Rename almost all Ctx functions ()
repo_transfer_test.go Rename almost all Ctx functions ()
user.go Implement FSFE REUSE for golang files ()