Liquibase has no support for refactoring change files. Usually he expects you to just leave things as soon as they are launched in order to minimize unexpected differences.
If you want to move things, the steps you described are what you will need to do. LogicalFilePath will help, and updating the databasechangelog.filename column should be all you need to do.
You will need to update the path to the file name before starting linibase for the first time after the files are reorganized or it will run changeSets again. Liquibase looks at the change table and change file immediately at startup, so you will need to update the file name column outside of Liquibase.
Nathan voxland
source share