I’m trying to figure out the best practice for my use case.
Let’s say I have multiple MySQL databases and one changelog. I don’t want all the changesets in the changelog to be applied to every database. Instead, I want specific changesets to be applied to specific databases, but with one master changelog instead of having a changelog for every database.
I think I can do this by using
- select database()
- select database()
But is this against best practice? Basically, is it best practice to have one master changelog per database schema, or is it okay to combine changes for multiple schemas into one master changelog and select which changes to apply using sqlCheck?