Skip to content

Commit

Permalink
chore(migrations): ignore empty migrations (spinnaker#2846)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marchello2000 authored Apr 18, 2019
1 parent 76fa777 commit ce29a72
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class SpringLiquibaseProxy(

// Then if anything else has been defined, do that afterwards
sqlProperties.migration.additionalChangeLogs
.filter { !it.isEmpty() }
.map {
SpringLiquibase().apply {
changeLog = "classpath:$it"
Expand Down

0 comments on commit ce29a72

Please sign in to comment.