We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If one of your migration file names contains _ (underscore),
_
sqlx migrate run produces this unhelpful error message:
sqlx migrate run
error: while resolving migrations: invalid digit found in string
$PROJECT_ROOT/migrations/000.crate_foo_table.sql
Cargo.toml has:
Cargo.toml
sqlx = { version = "0.7.3", features = ["runtime-tokio", "chrono", "macros", "postgres"] }
0.7.3
"runtime-tokio", "chrono", "macros", "postgres"
postgres:16.1
uname -r
5.15.0-82-generic
rustc --version
rustc 1.78.0-nightly (1a648b397 2024-02-11)
Suggested fixes:
The text was updated successfully, but these errors were encountered:
Fixed by #3089
Sorry, something went wrong.
No branches or pull requests
Bug Description
If one of your migration file names contains
_
(underscore),sqlx migrate run
produces this unhelpful error message:Minimal Reproduction
$PROJECT_ROOT/migrations/000.crate_foo_table.sql
sqlx migrate run
Info
Cargo.toml
has:0.7.3
"runtime-tokio", "chrono", "macros", "postgres"
postgres:16.1
)uname -r
=5.15.0-82-generic
rustc --version
:rustc 1.78.0-nightly (1a648b397 2024-02-11)
Suggested fixes:
_
meaning underscore)The text was updated successfully, but these errors were encountered: