Skip to content

[stable35] fix(cloud_federation_api): ensure federated_invites table always exists - #66692

Open
backportbot[bot] wants to merge 1 commit into
stable35from
backport/66686/stable35
Open

backportbot[bot] wants to merge 1 commit into
stable35from
backport/66686/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 17, 2026

Copy link
Copy Markdown

Backport of PR #66686

Add another migration to create the table again on instances where it was removed.

If the table already exists the migration does nothing.

The table was originally created by this app
Then responsibility was moved to the contacts app.
For some time there was a repair job in this app that removed the table.
That job could cause problems removing the table after the contacts app created it.
So the cleanup job was removed.
However there are still some instances without the table as the cleanup job removed it.
This leads to warnings as `occ db:schema:check` expects the table to exist.
It also leads to an inconsistent schema between instances depending on wether the repair job ran.

Signed-off-by: Max <max@nextcloud.com>
@backportbot
backportbot Bot requested a review from a team as a code owner November 17, 2026 11:47
@backportbot
backportbot Bot requested review from Antreesy, leftybournes, max-nextcloud, mickenordin and salmart-dev and removed request for a team November 17, 2026 11:47
@backportbot backportbot Bot added the 3. to review Waiting for reviews label Nov 17, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.4 milestone Nov 17, 2026

@Antreesy Antreesy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably needs a version bump?

@nextcloud-bot nextcloud-bot mentioned this pull request Nov 30, 2026

This branch has not been deployed

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

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants