launchbadge / sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
Apache License 2.0
13.15k stars 1.24k forks source link

sqlx-cli -r flag does not create up/down on v0.7.4 #3302

Closed VaronLaStrauss closed 3 months ago

VaronLaStrauss commented 3 months ago

Bug Description

As the title suggests, on v0.7.4, appending the -r flag to sqlx migrate add -r <name> does not create the up/down.sql files - it only creates 1 file.

Minimal Reproduction

sqlx migrate add -r foo

Info

VaronLaStrauss commented 3 months ago

Follow up!

After reinstalling, it now works... strange!

It might have just been an install issue.