filename of change log is criteria to select updates

http://liquibase.jira.com/source/browse/CORE/trunk/liquibase-core/src/main/java/liquibase/changelog/filter/NotRanChangeSetFilter.java?r=1301

Looking at this file it seems that the name of the changelog file is one of the criteria to determine if a changeset was already applied to an database or not. Even worse the entire path to the file is used. The complete path also appears in the DATABASECHANGELOG table.

Having multiple developers and continuous integration servers with different paths makes liquibase think it has to apply all changesets again. Also switching between absolute and relative paths seems to trigger the same issue. Am I missing something? Is this bahavior configurable?

Regards,
Sebastian

I had the same problems not long ago. Using the “logicalFilePath” attribute solved it for me

http://liquibase.org/forum/index.php?topic=392.0

Thank you, that solved the problem. I was actually halfway there in that my changelog path was already in the classpath. But out of habit I used an absolute path for the changelog in my build scripts.