Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Change some columns from text to longtext and fix column wrong type caused by xorm#35141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lunny merged 7 commits intogo-gitea:mainfromlunny:lunny/fix_column_define
Jul 24, 2025

Conversation

@lunny
Copy link
Member

@lunnylunny commentedJul 21, 2025
edited
Loading

This PR upgrade xorm to v1.3.10 which fixed a bug when bothlongtext json tags in the struct field. Thelongtext will be ignored andjson will be considered astext.

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

@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelJul 21, 2025
@GiteaBotGiteaBot added lgtm/need 1This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelsJul 21, 2025
@hiifong
Copy link
Member

No sqlite support?

migration[321]: Fix review_state.updated_files column failed: near "MODIFY": syntax error

@GiteaBotGiteaBot added lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1This PR needs approval from one additional maintainer to be merged. labelsJul 22, 2025
@wxiaoguang
Copy link
Contributor

And, should it also include a fix for "uploading rpm with large metadata fails with mysql/mariadb database#35042" ?

lunny reacted with thumbs up emoji

@lunnylunny added this to the1.25.0 milestoneJul 23, 2025
@lunny
Copy link
MemberAuthor

  • db-tests / test-mysql (pull_request)

SQLite doesn't support to change column type and it's unnecessary to change it for SQLite because TEXT is the same as LONGTEXT in SQLITE.

@lunnylunny changed the titleFix column wrong type caused by xormChange some columns from text to longtext and fix column wrong type caused by xormJul 23, 2025
@lunnylunny added the reviewed/wait-mergeThis pull request is part of the merge queue. It will be merged soon. labelJul 23, 2025
@lunnylunny merged commit54fe47f intogo-gitea:mainJul 24, 2025
26 checks passed
@lunnylunny deleted the lunny/fix_column_define branchJuly 24, 2025 05:24
@GiteaBotGiteaBot removed the reviewed/wait-mergeThis pull request is part of the merge queue. It will be merged soon. labelJul 24, 2025
zjjhot added a commit to zjjhot/gitea that referenced this pull requestJul 28, 2025
* giteaofficial/main:  [skip ci] Updated translations via Crowdin  Fix migrate input box bug (go-gitea#35166)  [skip ci] Updated translations via Crowdin  Only hide dropzone when no files have been uploaded (go-gitea#35156)  Change some columns from text to longtext and fix column wrong type caused by xorm (go-gitea#35141)  [skip ci] Updated translations via Crowdin  Add `owner` and `parent` fields clarification to docs (go-gitea#35023)  Improve language in en-US locale strings (go-gitea#35124)
@go-giteago-gitea locked asresolvedand limited conversation to collaboratorsOct 22, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@lafrikslafrikslafriks approved these changes

@delvhdelvhdelvh approved these changes

+1 more reviewer

@hiifonghiifonghiifong approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore.modifies/dependenciesmodifies/goPull requests that update Go codemodifies/migrationstype/bug

Projects

None yet

Milestone

1.25.0

6 participants

@lunny@hiifong@wxiaoguang@lafriks@delvh@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp