Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea/Suggestion: Exclude Switches #77

Closed
ssuther opened this issue Sep 5, 2012 · 3 comments
Closed

Idea/Suggestion: Exclude Switches #77

ssuther opened this issue Sep 5, 2012 · 3 comments

Comments

@ssuther
Copy link

ssuther commented Sep 5, 2012

We use two distinct deployment mechanisms:.

  1. During a normal database 'upgrade' deployment we drop all objects (sprocs/views/functions etc through alterDatabase script) and then force RoundhousE to add them. This is working wonderfully.

  2. We also a need to do a 'fresh' database deployment to new environments using RoundhousE.

As part of our weekly build, we carry out an 'upgrade' of our blank master and back it up. This is then placed into the RoundhousE folder structure. This backup is fully up-to-date and requires a simple 'post-restore' script running over it and potentially an environmental specific script.

As it is by design, after the database is restored in, it proceeds to continue in normal mode (as it is intended). In this circumstance it drops everything etc, all of which is both unnecessary and time consuming.

It would be highly beneficial for us, and potentially others, for the ability to exclude certain script types or folders (all to be included by default, unless overridden by this switch.

@ferventcoder
Copy link
Member

You can do this now by changing the name of the folder specified to roundhouse with a folder that doesn't exist. i.e. /sprocsfolder "SprocsThatDoesNotExist"

@ferventcoder
Copy link
Member

Out of curiosity though, why do you do 1)? Why not just set up your anytime scripts in one of the two recommended ways (https://github.com/chucknorris/roundhouse/wiki/Anytimescripts) and let RH do its thing and only run the files that have changed?

@BiggerNoise
Copy link
Member

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants