question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet fm rollback all does not work

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:21 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
gandarezcommented, Dec 6, 2019

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.

2reactions
fubar-codercommented, Dec 5, 2019

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
Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet-fm tool
rollback and migrate specific parameters. -m|--transaction-mode <MODE>. Overrides the transaction behavior of migrations, so that all migrations to be executed ...
Read more >
How to perform migrations in the package manager?
To run this same migration on a Sql Server 2016 you would run: dotnet fm migrate -p SqlServer2016 -c "server=SQLSERVERINSTANCE;uid=testfm ...
Read more >
fluentmigrator
Fluent migrations framework for .NET. ... Migrations solve the problem of evolving a database schema for multiple databases (for ... Rollback-FluentDatabase.
Read more >
FluentMigrator changelog - Awesome .NET - LibHunt
DotNet.Cli. Fixes #1123 dotnet fm rollback all does not work . Documentation was also updated in fluentmigrator/documentation#19 @gandarez
Read more >
FluentMigrator.DotNet.Cli 3.3.2
NET Core CLI tool for FluentMigrator.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found