Skip to content

fix database migration for selfhosted instances - #41

Open
grug117 wants to merge 1 commit into
Librum-Reader:mainfrom
grug117:main
Open

fix database migration for selfhosted instances#41
grug117 wants to merge 1 commit into
Librum-Reader:mainfrom
grug117:main

Conversation

@grug117

@grug117 grug117 commented Feb 22, 2025

Copy link
Copy Markdown

MySQL/MariaDB instances of the database created via context.Database.EnsureCreated() fail due to row/page size constraints intercept the entity creation and if database is MySQL, override datatype to longtext resolving the page size issue

also seed the selfhosted instance witha dummy self hosted product and assign it to the admin user, allowing first time login

reported here #39

MySQL/MariaDB instances of the database created via
`context.Database.EnsureCreated()` fail due to row/page size constraints
intercept the entity creation and if database is MySQL, override
datatype to `longtext` resolving the page size issue

@DavidLazarescu DavidLazarescu 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.

Thank you for spending time to fix this! I very much appreciate it

@jsoref

jsoref commented Aug 28, 2025

Copy link
Copy Markdown

@DavidLazarescu did you plan to merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants