Skip to content

❌ CI/CD pipeline failing due to SQLx migration checksum mismatch #573

@Wilfred007

Description

@Wilfred007

πŸ“Œ 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

  1. Clone the repo
  2. Set DATABASE_URL
  3. 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.

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions