gitea/models
Lunny Xiao 54fe47fbca
Change some columns from text to longtext and fix column wrong type caused by xorm (#35141)
This PR upgrade xorm to v1.3.10 which fixed a bug when both `longtext
json` tags in the struct field. The `longtext` will be ignored and
`json` will be considered as `text`.

A migration has been introduced to modify the column directly to
longtext. And another two columns should also be migrated from text to
longtext.

All these changes only affect mysql database because for other databases
Gitea supported, text is the same as longtext.

Fix #27244 
Fix #34764 
Fix #35042
2025-07-23 22:24:44 -07:00
..
actions Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
activities Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
admin Fix omitempty bug (#33663) 2025-02-20 12:39:21 -08:00
asymkey Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
auth Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
avatars Replace 10 more gt- classes with tw- (#29945) 2024-03-22 13:45:10 +00:00
db Refactor container package (#34877) 2025-06-29 09:20:38 +08:00
dbfs Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
fixtures Fix user's sign email check (#35045) 2025-07-12 15:13:01 +08:00
git Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
issues Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
migrations Change some columns from text to longtext and fix column wrong type caused by xorm (#35141) 2025-07-23 22:24:44 -07:00
organization Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
packages Change some columns from text to longtext and fix column wrong type caused by xorm (#35141) 2025-07-23 22:24:44 -07:00
perm enforce nolint scope (#34851) 2025-06-27 07:59:55 +02:00
project Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
pull Start automerge check again after the conflict check and the schedule (#34989) 2025-07-08 14:51:16 +00:00
renderhelper Fix commit message rendering and some UI problems (#34680) 2025-06-10 23:20:32 +08:00
repo Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
secret Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +00:00
shared/types Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
system Change some columns from text to longtext and fix column wrong type caused by xorm (#35141) 2025-07-23 22:24:44 -07:00
unit Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
unittest Uniform all temporary directories and allow customizing temp path (#32352) 2025-04-08 16:15:28 +00:00
user Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
webhook Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
repo.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
repo_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00