Upgrade error: database constraint collision

Hi,

I get the following error when trying to update from Nextcloud 28.0.14 to Nextcloud 29.0.10 (on the path to 30):


~/web/nextcloud$ php-8.3 occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
InvalidArgumentException: Index name "share_id_index" for table "b8sx_onlyoffice_permissions" collides with the constraint on table "b8sx_federated_reshares".
Update failed
Maintenance mode is kept active
Resetting log level

How can I solve this database problem? Thanks

Solved using this comment:

so by running this SQL request:

DROP INDEX share_id_index ON oc_onlyoffice_permissions;

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.