Control Liquibase Changeset Execution Order

I have a list of change set which the naming have prefix like AAA-1 AAA-2… AAA-11.
The problem I am having is that the Liquibase actually run AAA-11 before AAA-2.
Can I somehow change this behavior ?

I assume you are using “includeAll” in your master changelog. The documentation for includeAll says this:

“All files inside of the included directory are run in alphabetical order.”

If this behavior doesn’t work for your files then the alternative is to user “include”, where you explicitly specify the execution order of the changelogs.

We use includeAll, and it works great. You just need a minor change to how you name your files.

We have chosen to use numeric prefix in file names, and always with two digits. So the filenames would be like this: