ENT-1704 restructure db migration documentation (#636)

This commit is contained in:
Tudor Malene
2018-04-11 16:48:25 +01:00
committed by Michele Sollecito
parent c7937fa6f9
commit 241f7738e4
7 changed files with 329 additions and 164 deletions

View File

@ -133,7 +133,7 @@ class SchemaMigration(
check && !run -> {
val unRunChanges = liquibase.listUnrunChangeSets(Contexts(), LabelExpression())
if (unRunChanges.isNotEmpty()) {
throw IllegalStateException("There are ${unRunChanges.size} outstanding database changes that need to be run. Please use the provided tools to update the database.")
throw IllegalStateException("There are ${unRunChanges.size} outstanding database changes that need to be run. Please use the advanced migration tool. See: https://http://docs.corda.r3.com/database-migration.html")
}
}
(outputWriter != null) && !check && !run -> liquibase.update(Contexts(), outputWriter)