sougatamondal / migratordotnet

Automatically exported from code.google.com/p/migratordotnet
0 stars 0 forks source link

Enhancement: Add dry-run option #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Since Migrations can now be unpredictably numbered and there may be large
gaps in numbers, it would be very convenient to add a -dry-run option to
Migrator.Console (and to the ant/build tasks as well) that would display
all the Migration actions that would be taken but didn't actually do
anything to the database.  I'm thinking an optional argument to
Migrator.MigrateTo which is passed to Migration.Migrate to cause it to
perform logging but skip the (downup)/apply/commit block.

I'll try this idea out and provide a patch over the next few days if nobody
beats me to it.

Original issue reported on code.google.com by evon...@gmail.com on 6 Aug 2008 at 3:21

GoogleCodeExporter commented 8 years ago
Patch attached.  Includes support for console, msbuild, and nant, although I've 
only
tested the console version.

Original comment by evon...@gmail.com on 9 Aug 2008 at 2:46

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by geoffl...@gmail.com on 28 Aug 2008 at 1:18

GoogleCodeExporter commented 8 years ago
SVN 118
Add a dry run option for the runners that won't actually apply the changes but 
rather 
shows what would have happened.
Thanks to evonzee for the patch (although it was changed a bit)

Original comment by geoffl...@gmail.com on 5 Sep 2008 at 10:42