Allow output to file without a connection string #269

Closed
worldspawn opened this Issue Jun 12, 2012 · 3 comments

Projects

None yet

3 participants

@worldspawn

I have been playing with the output option of the console runner and noticed that I can output to file but I still need to have a working connection string - and the script is then executed against that connection. At the moment the output option feels more like a logging feature rather than something functional.

In some cases it might be required to generate a script to be run later/independently (like when the hosting environment is not accessible from CI or the dev team). That script should include every migration (or up to the specified version) and wrap each of the migrations in an inline check against the versioninfo table to see if it actually needed to be run.

@tommarien
Collaborator

@worldspawn i totally agree on the fact that the output to file option is basicly a simple logger :)

I would love to see an improving pull :P

@worldspawn

Right fair enough, database access seems to be pretty baked in to the code... I can't really follow it :(

@andrewhanson

Just ran into this same issue on a current project and created a pull request for supporting connectionless migrations.

#570

I didn't add any version checking into the output yet but now that the connection is pulled out it would probably be easier to extend.

I'd be interested in your thoughts/comments if you still have this issue.

@tommarien tommarien closed this Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment