forgejo/models
Gusted a488b3952f
[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)
(cherry picked from commit 857365d6c1)
2023-10-02 17:06:22 +02:00
..
actions [v1.22] [CLI] implement forgejo-cli 2023-10-02 16:28:25 +02:00
activities More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
admin Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
asymkey make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
auth [TESTS] oauth2: add integration test helpers 2023-10-02 17:06:22 +02:00
avatars make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
db make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
dbfs make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
fixtures Test more templates for if they contain an error (#27367) 2023-10-02 07:56:55 +00:00
forgejo_migrations [DB] Forgejo database migrations 2023-10-02 17:06:22 +02:00
git More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
issues simplify issue deletion query (#27312) 2023-10-02 02:30:10 +00:00
migrations [DB] Forgejo database migrations 2023-10-02 17:06:22 +02:00
organization make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
packages make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
perm make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
project More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
pull refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
repo More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
secret Refactor secrets modification logic (#26873) 2023-09-05 15:21:02 +00:00
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2023-05-12 08:43:27 +00:00
system make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
unit Use Set[Type] instead of map[Type]bool/struct{}. (#26804) 2023-08-30 06:55:25 +00:00
unittest make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
user fix: comment typo (#27388) 2023-10-02 08:31:03 +00:00
webhook make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
error.go Sync branches into databases (#22743) 2023-06-29 10:03:20 +00:00
fixture_generation.go Fix yaml test (#27297) 2023-09-26 23:30:03 -04:00
fixture_test.go Fix yaml test (#27297) 2023-09-26 23:30:03 -04:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
org.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
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 Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
repo.go move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
repo_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
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