Skip to content

Migration with foreign key failing with two separate calls to runMigration #152

@bergmark

Description

@bergmark

Description copied from the google group

I have a pretty simple test case with two models (in separate modules) with a foreign key constraint, https://gist.github.com/bergmark/6539373

I make a call to runMigration for each module and then get the error "Table not found: A" on the second migration. If i put both models in the same persist block this problem doesn't occur. This is with the latest hackage versions of persistent, persistent-template, persistent-sqlite (and persistent-postgresql).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions