Hi, I updated my postgresql database from v9 to v10 while running nextcloud-12.0.3. While updating nextcloud to 12.0.4 today I run into the errors described in the github issue tracker (see URL). The patch posted there works fine for me via /etc/portage/patches. I’ll attach it here. Reproducible: Always
Created attachment 509234 [details, diff] nextcloud-12.0.4-upgrade-with-postgresqlv10.patch
Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing 'SELECT min_value, increment_by FROM "oc_activity_mq_mail_id_seq"': SQLSTATE[42703]: Undefined column: 7 ERROR: column "min_value" does not exist LINE 1: SELECT min_value, increment_by FROM "oc_activity_mq_mail_id_... ^ Update failed
Thanks for the report! While this fixes the installation issue, it looks like additional changes are needed for proper runtime operation. So instead of visible error on upgrade, users may see issues cropping up later (and harder to diagnose). Hmm, the requirements are up-to-date now: https://docs.nextcloud.com/server/12/admin_manual/installation/system_requirements.html#supported-platforms (I am updating the ebuilds to block php7.2) so I am leaning on leaving this bug open until 13.0 is out, if people want to try the patch (or get to understand the problem). It would have been nice if upstream had added some runtime checks on it though :(
13.0 is out
And it seems to work fine here! Added 13.0.0 to tree, hopefully both php 7.2 and postgres 10 wok fine with it