Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.1 database migrations fail on MariaDB #1544

Closed
tari opened this issue Sep 6, 2024 · 5 comments
Closed

v5.1 database migrations fail on MariaDB #1544

tari opened this issue Sep 6, 2024 · 5 comments

Comments

@tari
Copy link

tari commented Sep 6, 2024

After upgrading from 5.0.2 to 5.1.0 using MariaDB, the server crashes on startup due to an SQL error in migrations:

(main) Reading from commafeed.DATABASECHANGELOG                                                                                                                   changelog-5.1.xml::add-unread-count-settings::athou
(main) Error: 1366-22007: Incorrect integer value: 'false' for column `commafeed`.`USERSETTINGS`.`unreadCountTitle` at row 1

I think "false" is being passed to the database as a string, and that's not a valid integer (because MySQL/MariaDB treat bools as integers).

@Athou
Copy link
Owner

Athou commented Sep 6, 2024

I can't seem to reproduce using mariadb:10.11 but I can probably make a fix for this. What version of MariaDB are you using?

@tari
Copy link
Author

tari commented Sep 6, 2024

Hm, interesting. I've got 10.11.8-MariaDB as shipped by NixOS, so it might be related to database options.

@Athou
Copy link
Owner

Athou commented Sep 6, 2024

Can you please try with the packages from https://github.com/Athou/commafeed/actions/runs/10735097320 (or the master-mariadb docker tag if using docker) to see if it fixes the issue? I'll release 5.1.1 if it does.
Thanks!

@tari
Copy link
Author

tari commented Sep 6, 2024

That change does seem to fix it, after I manually drop the new columns that got left behind in the failed migration (understandably so, since this database doesn't have transactional DDL).

@Athou
Copy link
Owner

Athou commented Sep 6, 2024

Thanks, 5.1.1 is being released https://github.com/Athou/commafeed/actions/runs/10736199856.

@Athou Athou closed this as completed Sep 6, 2024
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

No branches or pull requests

2 participants