π Project Context
This project is a Rust backend using Axum, SQLx, and PostgreSQL.
CI/CD is handled with GitHub Actions.
β Problem
The CI pipeline fails during migration with the error:
error: migration 20250411000001 was previously applied but has been modified
π Steps to Reproduce
- Clone the repo
- Set DATABASE_URL
- Run:
cargo sqlx migrate run
β
Expected Behavior
Migrations should run successfully in CI.
β Actual Behavior
Pipeline fails with checksum mismatch error.
π₯οΈ Environment
- Rust: (your version)
- SQLx: (your version)
- OS: Ubuntu (GitHub Actions)
π CI Workflow
Paste relevant part of .github/workflows/ci.yml
π οΈ What Iβve Tried
- Resetting migrations
- Re-running pipeline
- Ensuring fresh database
π Help Needed
Need help fixing SQLx migration issues in CI/CD pipeline.
π Project Context
This project is a Rust backend using Axum, SQLx, and PostgreSQL.
CI/CD is handled with GitHub Actions.
β Problem
The CI pipeline fails during migration with the error:
error: migration 20250411000001 was previously applied but has been modified
π Steps to Reproduce
cargo sqlx migrate run
β Expected Behavior
Migrations should run successfully in CI.
β Actual Behavior
Pipeline fails with checksum mismatch error.
π₯οΈ Environment
π CI Workflow
Paste relevant part of
.github/workflows/ci.ymlπ οΈ What Iβve Tried
π Help Needed
Need help fixing SQLx migration issues in CI/CD pipeline.