Skip to content

appliedMigrations function not returning migrations in correct order #29

Description

@dannyb101

The statement select * from __migrations__; from pg.js does not return the migrations in the correct order as no order is specified in the postgres command meaning that the results are returned in an unspecified order (docs).

This means that rollbacks are not executed in the order that they were applied. To resolve this the command should be changed to SELECT * FROM __migrations__ ORDER BY id ASC;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions