Skip to content

CustomCreateDatabase

Ivan Korneliuk edited this page Sep 18, 2015 · 9 revisions

You can instruct RH to use a custom script to create a database instead of the default scripts that it uses. You want to use this when you have a special way of creating databases that may vary from the norm, like adding multiple disk locations, etc.

Return 1 IF Script Creates Database

When using CustomCreateDatabase, if your script creates a database, it should return a value of 1. Otherwise any scripts you have in the runaftercreate folder will not be run.

For an example see https://github.com/chucknorris/roundhouse/blob/master/product/roundhouse.databases.sqlserver/SqlServerDatabase.cs#L112-L115

Clone this wiki locally