Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix migration checksum comparison during migrate info #1888

Merged
merged 1 commit into from
Jun 10, 2022

Commits on Jun 4, 2022

  1. Fix migration checksum comparison during migrate info

    When running `sqlx migrate info`, the applied migrations checksums are
    compared against the checksums of the local migration files. While the
    checksums of applied migrations are stored correctly in the database as
    sha384sum values, the `migrate info` command was incorrectly comparing
    these against the checksums of down-migrations in cases where reversible
    migrations are being used (e.g. when migrations end in `.up.sql` and
    `.down.sql`).
    
    This fixes the issue by skipping over any migrations with the
    `MigrationType::ReversibleDown` type, using the same idiom as is used
    when running migrations (with `migrate run`).
    
    Issue introduced in launchbadge#1680
    Partially resolves launchbadge#1158
    mdtusz committed Jun 4, 2022
    Configuration menu
    Copy the full SHA
    94b3375 View commit details
    Browse the repository at this point in the history