FlywayDB ignore sub-folder in migration -
i have situation ignore specific folders inside of flyway looking migration files.
example
- /db/migration
- 2.0-newbase.sql
- /oldscripts
- 1.1-base.sql
- 1.2-foo.sql
i want ignore inside of 'oldscripts' sub folder. there flag can set in flyway configs ignorefolder=some_folder or scanrecursive=false?
an example why say, have 1000 scripts in migration folder. if onboard new member, instead of having them run migration on 1000 files, run 1 script (the new base) , proceed there. alternative never sync files in first place, people need remember check source control prior migrations instead of looking on local drive.
this not supported directly. put both directories @ same level in hierarchy (without nesting them) , selectively configure flyway.locations
achieve same thing.
Comments
Post a Comment