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
Gusted d20e325378
[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 8ee32978c0af1f8f71679c87f695df2b90b617c8)
(cherry picked from commit c240b34f595a7a9763f7b748052ac98f9f18954d)
(cherry picked from commit 03936c649243a0a29701393d58e63e33064c7461)
(cherry picked from commit a20ed852f8b6d28872c05d688bffe5c6976bfa03)
(cherry picked from commit 1dfa82676f1feb745633618fde2d362bf19c4f28)
(cherry picked from commit c39ae0bf8abced8fd5dc32589e68515ac308b69b)
(cherry picked from commit cfaff08996c9f42592c95a63fe907b45b8a9317a)
(cherry picked from commit 94a458835a2b0336b26c1c9df64fdfe2de47f496)
(cherry picked from commit 61a3cf77dfe3f612ff110eb19f94dcb08051daf1)
(cherry picked from commit abb350fde879cc495761dc4616b7aa0fc5d94d54)
(cherry picked from commit 5194829d6b4ed702cf50ff875da57d04d77c8a18)
(cherry picked from commit 89239a60f23cad7dad03add744e23a4f3b10d6a4)
(cherry picked from commit 683cfd86efc5fa8cc04973ce3115351515a20917)
(cherry picked from commit f4546cfed92844e3666b80130eadabb9348b88ae)
(cherry picked from commit 86614d5826392b3fbe68355baeab9a0a761883a5)
(cherry picked from commit e4b9c32187a039a83686a82856a9a192919c6e82)
(cherry picked from commit 8c253719afa9b82f169757df007587d38560c06d)
(cherry picked from commit 857365d6c15b5471d63662b1d89d1523151c4f79)
(cherry picked from commit a488b3952f58bbf28bfa101a24e52dad7c9662eb)
(cherry picked from commit 98313c49109c941426beecc1a3e7887f28b99970)
(cherry picked from commit 430d95e8240971e266705d2e7202a5c785379cb2)
(cherry picked from commit 08bf9d918fbb67f5ac06c0cfdc24229aa14ff83f)
(cherry picked from commit f8a170e2d042fcb8f314e123de6918317ac1e909)
8 months ago
..
actions [CLI] implement forgejo-cli 8 months ago
activities Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 8 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 9 months ago
asymkey Replace more db.DefaultContext (#27628) 9 months ago
auth [TESTS] oauth2: add integration test helpers 8 months ago
avatars Final round of `db.DefaultContext` refactor (#27587) 9 months ago
db refactor: make db iterate context aware (#27710) 8 months ago
dbfs make writing main test easier (#27270) 9 months ago
fixtures Add unit tests for action runner token (#27670) 8 months ago
forgejo_migrations [DB] Forgejo database migrations 8 months ago
git Upgrade xorm to 1.3.4 (#27807) 8 months ago
issues Fix 500 when deleting a dismissed review (#27903) 8 months ago
migrations [DB] Forgejo database migrations 8 months ago
organization Even more `db.DefaultContext` refactor (#27352) 9 months ago
packages List all Debian package versions in `Packages` (#27786) 8 months ago
perm Even more `db.DefaultContext` refactor (#27352) 9 months ago
project More `db.DefaultContext` refactor (#27265) 9 months ago
pull Add Index to pull_auto_merge.doer_id (#27811) 8 months ago
repo Replace more db.DefaultContext (#27628) 9 months ago
secret Refactor secrets modification logic (#26873) 10 months ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 1 year ago
system Replace more db.DefaultContext (#27628) 9 months ago
unit Make actions default enabled for newly created repository if global configuraion enabled (#27482) 9 months ago
unittest Upgrade xorm (#27673) 8 months ago
user Replace -1 with GhostUserID (#27703) 8 months ago
webhook Final round of `db.DefaultContext` refactor (#27587) 9 months ago
error.go Sync branches into databases (#22743) 1 year ago
fixture_generation.go Replace more db.DefaultContext (#27628) 9 months ago
fixture_test.go Replace more db.DefaultContext (#27628) 9 months ago
main_test.go make writing main test easier (#27270) 9 months ago
org.go Refactor the function RemoveOrgUser (#27582) 8 months ago
org_team.go Refactor the function RemoveOrgUser (#27582) 8 months ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 10 months ago
org_test.go Replace more db.DefaultContext (#27628) 9 months ago
repo.go Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 9 months ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 9 months ago