chore: Migrate github.com/jinzhu/gorm to gorm.io/gorm by eternal-flame-AD · Pull Request #863 · gotify/server · GitHub
Skip to content

chore: Migrate github.com/jinzhu/gorm to gorm.io/gorm - #863

Merged
eternal-flame-AD merged 12 commits into
masterfrom
gorm-io-migrate
Oct 29, 2025
Merged

chore: Migrate github.com/jinzhu/gorm to gorm.io/gorm#863
eternal-flame-AD merged 12 commits into
masterfrom
gorm-io-migrate

Conversation

@eternal-flame-AD

@eternal-flame-AD eternal-flame-AD commented Oct 16, 2025

Copy link
Copy Markdown
Member

Closes #862 .

I removed the manual column fixup: The default column type is already bloba and longblob (I tested on the docker container for MariaDB and postgres).

I also dropped a test that is basically if the database returns error then the function has to return an error, feels a little mechanical coverage driven test not really useful.

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
@eternal-flame-AD
eternal-flame-AD requested a review from a team as a code owner October 16, 2025 06:13
@codecov

codecov Bot commented Oct 16, 2025

Copy link
Copy Markdown

Comment thread database/database.go
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This reverts commit b494a3b.

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>

@jmattheis jmattheis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. I'll try to test this with all supported databases on sunday, or next week.

Comment thread database/database.go
Comment thread model/application.go Outdated
Comment thread api/application_test.go
Comment thread api/application_test.go
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
@eternal-flame-AD

Copy link
Copy Markdown
Member Author

Comment thread model/application.go Outdated
Comment thread model/application.go Outdated
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>

@jmattheis jmattheis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

postgres and sqlite looks good, but mysql/mariadb has some problems.

Comment thread model/application.go Outdated
Comment thread model/application.go
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>

@jmattheis jmattheis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:, please squash the commits.

@eternal-flame-AD
eternal-flame-AD merged commit 496c166 into master Oct 29, 2025
3 of 4 checks passed
@jmattheis
jmattheis deleted the gorm-io-migrate branch January 2, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Migrate github.com/jinzhu/gorm to gorm.io/gorm

2 participants