Skip to content

Combining command options does not work #3348

Open
@thiagokoster

Description

@thiagokoster

Bug Description

Hey,
I'm trying to create a reversible sequential migration file. By reading the --help menu I thought that executing the the following command: sqlx migrate add -rs post would create two files, 0001_post.up.sql and 0001_post.down.sql.
But it only creates one file, 0001_post.up.sql.

Using just the -r flag works but it does not create a sequential file.
I don't know if this is the expected behavior or a bug.
Thanks in advance!

Minimal Reproduction

Execute:
sqlx migrate add -rs post

Info

  • SQLx version: sqlx-cli 0.7.4
  • SQLx features enabled: sqlx = { version = "0.7", features = [ "postgres", "uuid", "runtime-tokio", "tls-native-tls" ] }
  • Database server and version: PostgreSQL 16.3
  • Operating system: Linux
  • rustc --version: rustc 1.76.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcliConcerns `sqlx-cli`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions