Enhancement: RunAfterCreateDatabase folder #20

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

Comments

Projects
None yet
3 participants
@ferventcoder
Member

ferventcoder commented Sep 28, 2011

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

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Sep 28, 2011

Member

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

Member

ferventcoder commented Sep 28, 2011

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

@ferventcoder

This comment has been minimized.

Show comment
Hide comment
Member

ferventcoder commented Sep 28, 2011

Fixed in 5ec9b4c

@ferventcoder

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Sep 28, 2011

Member

Fixed sql 2000 here: a184588

Member

ferventcoder commented Sep 28, 2011

Fixed sql 2000 here: a184588

@BiggerNoise

This comment has been minimized.

Show comment
Hide comment
@BiggerNoise

BiggerNoise Oct 1, 2011

Member

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

Member

BiggerNoise commented Oct 1, 2011

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

@ferventcoder

This comment has been minimized.

Show comment
Hide comment
Member

ferventcoder commented Oct 3, 2011

:D

@lholman

This comment has been minimized.

Show comment
Hide comment
@lholman

lholman 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

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

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Jun 12, 2013

Member

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

Member

ferventcoder commented Jun 12, 2013

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

@lholman

This comment has been minimized.

Show comment
Hide comment
@lholman

lholman 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 ?

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 ?

@lholman

This comment has been minimized.

Show comment
Hide comment
@lholman

lholman Jul 2, 2013

Worked perfectly, thanks @ferventcoder

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

ChrisMissal pushed a commit to ChrisMissal/roundhouse that referenced this issue Jul 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment