Generating a release script

96 views
Skip to first unread message

Kerry Todyruik

unread,
Feb 8, 2016, 3:48:42 AM2/8/16
to FluentMigrator Google Group
Hi,

I was wondering if it is possible to generate a script on a subset of migrations without running against and affecting a database?

The scenario I am thinking of is when I need to generate a release script for a DBA to run.

I'd like to generate a script for a certain range of migrations. Say 5-10.

Or perhaps tag some migrations "Release2" and run those.

Is that possible with FluentMigrator? Can someone share the configuration to use?

Thanks,
Kerry


Dustin Venegas

unread,
Feb 8, 2016, 4:04:23 AM2/8/16
to FluentMigrator Google Group
Kerry,

It sounds like you want to generate scripts and pass them off to a DBA to run against a production database. This might be difficult since FluentMigrator expects the VersionInfo table to be populated to determine which scripts need to run. It may be easier for your needs to write the scripts by hand, store them as text files, and use FluentMigrator as a developer tool that DBAs can access to get scripts from. 

-dev
Reply all
Reply to author
Forward
0 new messages