Using the Create-Drop Property
The datahub.autoInitMode="create-drop" property starts Data Hub and its extensions with a clean database. Use this property in a test and development environment only.
For a sample repository of configuration files you can use when testing, see the Data Hub Sample Repository
.
Add Create-Drop to the Data Hub Environment
The datahub.autoInitMode="create-drop" drops the Data Hub schema and rebuilds with a clean database on each restart.
Context
Procedure
- Add datahub.autoInitMode="create-drop" to your configuration file, datahub-environment.conf or datahub-environment-<environmentcode>.conf .
- Commit the change to your repository.
- Perform a build.
- Deploy that build to your test environment.
Results
Your Data Hub instance will have a clean database.
Remove Create-Drop from the Data Hub Environment
Before deploying Data Hub to a live customer environment, change the datahub.autoInitMode property to a safe value.
Context
If you have been using Data Hub in a test environment and have the datahub.autoInitMode set to create-drop, then ensure you set it back to either create or ignore prior to deploying it to a production environment.