YunoHost-Apps / wallabag2_ynh

Wallabag v2 package for YunoHost
https://www.wallabag.org/
GNU Affero General Public License v3.0
62 stars 14 forks source link

Cannot update to 2.4.3: An exception occurred while executing 'ALTER TABLE entry ADD given_url LONGTEXT DEFAULT NULL, ADD hashed_given_url TINYTEXT DEFAULT NULL' #143

Closed mdic closed 6 months ago

mdic commented 2 years ago

Describe the bug

Wallabag cannot be updated due to the following error

Error thrown while running command "--no-interaction --env=prod doctrine:migrations:migrate". Message: "An exception occurred while executing 'ALTER TABLE entry ADD given_url LONGTEXT DEFAULT NULL, ADD hashed_given_url TINYTEXT DEFAULT NULL'

Context

Steps to reproduce

Try to update Wallabag from 2.3.8~ynh4 to 2.4.3~ynh1 from the webadmin "System update" tool

Expected behavior

The app should update

Logs

https://paste.yunohost.org/raw/tokaconera

lapineige commented 2 years ago

Could you give a try to this PR please ? ~yunohost app upgrade wallabag2 -u https://github.com/YunoHost-Apps/wallabag2_ynh/tree/testing~ Merged into master, no need to use the command line ;)

El-Gavy commented 2 years ago

@lapineige no access to CLI for the moment, has it been merged to master (so that i could try a "normal" upgrade)

lapineige commented 2 years ago

Yes indeed, I forgot to update this :)

klorydryk commented 2 years ago

Just tried to update to 2.5.0 : got the same error.

mdic commented 2 years ago

I can confirm that upgrading to Wallabag 2.5.0 ynh2 solves the previous issue, and Wallabag is now correctly upgrading.

lapineige commented 2 years ago

So now how to find why some errors are resolved and not others.

Salamandar commented 6 months ago

Should be fixed