liquibase / liquibase-groovy-dsl

The official Groovy DSL for Liquibase
Other
83 stars 33 forks source link

No check if there are multiple databaseChangeLog root element #59

Open b-gyula opened 3 months ago

b-gyula commented 3 months ago

Opposed to the other file formats, where databaseChangeLog can be to one and only root element this is a perfectly working and accepted script

databaseChangeLog {
    include (file: '/dev/liquibase/groovy-dsl/test/changelogs/log1.groovy')
}

databaseChangeLog {
    include (file: '/dev/liquibase/groovy-dsl/test/changelogs/log2.groovy')
}
stevesaliman commented 1 month ago

It's unusual, but not at all invalid to have more than one databaseChangeLog in a file. Is this creating any problems?