fluentmigrator: dotnet fm rollback all does not work

Running the command below gives me an error

dotnet fm rollback all -p mysql -c "Server=localhost;Database=Db;Uid=root;Pwd=xpto;" -a MyAssmbly.DbMigration\bin\Debug\netcoreapp2.1\MyAssmbly.DbMigration.dll --tag Testing
Unrecognized option '-p'

Am I missing something?

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments

I found the problem. I fixed most of them and there’s one last bug on rollback that needs attention. As soon as I finish the tests I do a PR.

A rollback command doesn’t support assemblies and/or tags. This seems like an oversight on my side. The -p and -c options are connection options and come directly after the rollback command.

Example:

dotnet fm rollback -p mysql -c "Server=localhost;Database=Db;Uid=root;Pwd=xpto;" all

For a 👻 You sure do show up.