forgejo/models
Gusted 857365d6c1
[DB] Forgejo database migrations
- Implements https://codeberg.org/forgejo/discussions/issues/32#issuecomment-918737
- Allows to add Forgejo-specific migrations that don't interfere with Gitea's migration logic. Please do note that we cannot liberally add migrations for Gitea tables, as they might do their own migrations in a future version on that table, and that could undo our migrations. Luckily,  we don't have a scenario where that's needed and thus not taken into account.

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/795
(cherry picked from commit 8ee32978c0)
(cherry picked from commit c240b34f59)
(cherry picked from commit 03936c6492)
(cherry picked from commit a20ed852f8)
(cherry picked from commit 1dfa82676f)
(cherry picked from commit c39ae0bf8a)
(cherry picked from commit cfaff08996)
(cherry picked from commit 94a458835a)
(cherry picked from commit 61a3cf77df)
(cherry picked from commit abb350fde8)
(cherry picked from commit 5194829d6b)
(cherry picked from commit 89239a60f2)
(cherry picked from commit 683cfd86ef)
(cherry picked from commit f4546cfed9)
(cherry picked from commit 86614d5826)
(cherry picked from commit e4b9c32187)
(cherry picked from commit 8c253719af)
2023-09-25 16:02:39 +02:00
..
actions [CLI] implement forgejo-cli 2023-09-25 15:24:38 +02:00
activities Quote table release in sql queries (#27205) 2023-09-23 12:57:39 +00:00
admin Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
asymkey Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
auth [TESTS] oauth2: add integration test helpers 2023-09-25 16:02:39 +02:00
avatars
db
dbfs
fixtures Fix review request number and add more tests (#27104) 2023-09-21 13:59:50 +02:00
forgejo_migrations [DB] Forgejo database migrations 2023-09-25 16:02:39 +02:00
git Updates to the API for archived repos (#27149) 2023-09-21 23:43:29 +00:00
issues Fix review request number and add more tests (#27104) 2023-09-21 13:59:50 +02:00
migrations [DB] Forgejo database migrations 2023-09-25 16:02:39 +02:00
organization Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
packages
perm
project
pull
repo Updates to the API for archived repos (#27149) 2023-09-21 23:43:29 +00:00
secret
shared/types
system
unit
unittest
user Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go Use db.WithTx for AddTeamMember to avoid ctx abuse (#27095) 2023-09-16 12:54:23 +00:00
org_team_test.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
org_test.go
repo.go
repo_test.go
repo_transfer.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
repo_transfer_test.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00