0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-18 04:54:18 +01:00
gitea/services/migrations
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
..
codebase_test.go
codebase.go
common.go
dump.go
error.go
git.go
gitbucket.go
gitea_downloader_test.go
gitea_downloader.go
gitea_uploader_test.go
gitea_uploader.go Check primary keys for all tables and drop ForeignReference (#21721) 2022-12-23 19:35:43 +08:00
github_test.go
github.go
gitlab_test.go
gitlab.go
gogs_test.go
gogs.go
http_client.go
main_test.go
migrate_test.go
migrate.go
onedev_test.go
onedev.go
restore.go
update.go