Skip to content

foreign key constraint #141

@boo-code

Description

@boo-code

Syncing stops because of foreign key constraint between two collections. directus-extension-sync shows error in console and crashes.

Solution would be to run "SET FOREIGN_KEY_CHECKS=0;" before pushing to DB, and then "SET FOREIGN_KEY_CHECKS=1;" when push is done. But how to set these additional DB commands in config or directus-extension-sync module itself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    directus-relatedThis issue is related to Directus itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions