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

Enhancement: RunAfterCreateDatabase folder #20

Closed
ferventcoder opened this issue Sep 28, 2011 · 10 comments
Closed

Enhancement: RunAfterCreateDatabase folder #20

ferventcoder opened this issue Sep 28, 2011 · 10 comments

Comments

@ferventcoder
Copy link
Member

This should have scripts that run only once, and only after a database is created. If you are hitting an existing database, these should not run.

@ferventcoder
Copy link
Member Author

This will run just after the alter database statements. This will not run if the database is created during a restore.

@ferventcoder
Copy link
Member Author

Fixed in 5ec9b4c

@ferventcoder
Copy link
Member Author

Fixed sql 2000 here: a184588

@BiggerNoise
Copy link
Member

Oh excellent. This is exactly what I wanted for baseline work.

@ferventcoder
Copy link
Member Author

:D

@lholman
Copy link

lholman commented Jun 12, 2013

Is it by design that this also doesn't run if you specify a custom script for CreateDatabaseCustomScript, for example?

/cds=%sql.files.directory%\custom_db_create.sql

@ferventcoder
Copy link
Member Author

It doesn't if you do not return true that a db was created, this is true.

@lholman
Copy link

lholman commented Jun 19, 2013

Cheers Rob,

For the time being I've lumped the custom database create logic in with one of the scripts in the runAfterCreateDatabase folder and it does a load of ALTER DATABASE statements. It seems a bit clunky though. Is there a simple way for me to return true that a db was created when using -cds ?

@ferventcoder
Copy link
Member Author

@lholman
Copy link

lholman commented Jul 2, 2013

Worked perfectly, thanks @ferventcoder

GoogleCodeExporter pushed a commit to google-code-export/roundhouse that referenced this issue Mar 13, 2015
@ferventcoder ferventcoder modified the milestone: 0.8.5 Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants