Skip to content

Commit ce29a72

Browse files
chore(migrations): ignore empty migrations (spinnaker#2846)
Currently, any non-standard migrations are defined in the orca.yml as a list. Sometimes, it's nice to be able to run without those migrations (e.g. when developing both in OSS and private land). However, due to an issue in spring (which, I believe, should be fixed in boot2.0.3) it's impossible to override a list with an empty list, but you can override a list with a new list. Hence this change to not run empy entries
1 parent 76fa777 commit ce29a72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

orca-sql/src/main/kotlin/com/netflix/spinnaker/orca/sql/SpringLiquibaseProxy.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class SpringLiquibaseProxy(
5151

5252
// Then if anything else has been defined, do that afterwards
5353
sqlProperties.migration.additionalChangeLogs
54+
.filter { !it.isEmpty() }
5455
.map {
5556
SpringLiquibase().apply {
5657
changeLog = "classpath:$it"

0 commit comments

Comments
 (0)