We are writing some extensions to manage a Drupal installation from within Liquibase, with an example being enabling a Drupal module. The idea is to start with a database dump of a fresh installation and manage everything with these extensions from there.
Enabling required modules
The problem with the code above is the extension from changeset #2 needing the dump already imported in the database to run properly. It seems like the sqlFile changes from changeset #1 are not completed when changeset #2 executions starts so enableDrupalModule fails.
It works if we perform the following steps:
- Comment changeset #2
- Run update-database
- Uncomment changeset #2
- Run update-database again
It sounds like a timing or transactional problem… any clue about what would be going on?
Thanks a lot!