Skip to content

Migrations containing defer_foreign_keys fail to apply but the remaining migrations are still applied #531

@mathix420

Description

@mathix420

Describe the bug
nuxt-hub fails to apply migrations containing PRAGMA defer_foreign_keys=on|off, and wrongly reports that everything went well.

Image

Only 14 out of 17 migrations are actually applied, all the failures contain defer_foreign_keys.
Image

Steps to reproduce
Steps to reproduce the behavior:

  • Try to deploy any project containing at least 3 migrations files, on the second one add PRAGMA defer_foreign_keys = on;.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions