SQL Callbacks - more than one .sql file per event #1315
What version of Flyway are you using?
What database are you using (type & version)?
What operating system are you using?
Windows 7 & RHEL
At present, a Sql Callback can execute only one .sql file eg afterMigrate.sql. This file can't import code from another .sql files or 'call' another .sql file. I would like to execute multiple .sql files in a callback.
At present, I use Oracle SqlPlus to execute a list of files after migration but I would prefer if I could do this with Flyway.
Have flyway scan for callback files named something like this: afterMigrate.sql.list
The text was updated successfully, but these errors were encountered:
There is one additional benefit of having more that one hook:
It would be nice to have callbacks before and after a specific migration only.
This could be used to insert test data after schema creation to allow that the next migrations could be run with existing data. For example, having the sql scripts for the migration in an