Skip to content

Dangling data tuples in table oc_cards_properties #15286

Description

@raoulbhatia

I have a long upgrade history, where I started out on OwnCloud and then migrated over to Nextcloud. I have also used the Contacts app for a long time.

I was today doing some contacts cleanup and noticed dangling data tuples with the following command:

SELECT * FROM oc_cards_properties
LEFT JOIN oc_cards ON oc_cards_properties.cardid = oc_cards.id
HAVING oc_cards.id IS NULL;

38 rows in set (0.00 sec)

How about adding a constraint to disallow such invalid data?

Thanks,
Raoul

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions