-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to have Flyway apply scripts from "locations" list in order that is specified. #2541
Comments
Thanks for the request
Can you explain a bit more what you mean by this? What additional control do you need over migration execution? |
@MikielAgutu practical example: i would want my scripts/Functions subfolder to be always executed/iterated-through , before our scripts/StoredProcedures subfolder is executed. This has to do with object dependencies, and warnings MSSQL likes to throw up. Side Note: In an ideal world, if i introduce a new (or modify existing) repeatable FN, and i try to use it in a new V script i would like Flyway to be smart enough and realize it needs to Create or Alter the FN first before running the V, but while a related issue; it would be a much more complex problem to solve - i do realize. |
Thanks for the extra information. We've had lots of people report issues which ultimately come down to dependency management, script execution order etc. We're currently thinking about how we can solve this problem to unlock alot of users. We won't commit to adding this feature in particular, since we'd rather add something that fixes the underlying problem. I'll keep the issue open for reference however. |
General problem captured here #2698 |
Which version and edition of Flyway are you using?
v6.0.7
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
MSSQL 14.0.x
Which operating system are you using?
Win10 x64
What did you do?
Just doing meat-and-potatoes migration.
What did you expect to see?
IT WOULD BE GREAT: if there existed a new switch that when turned to ON, would force FLYWAY to execute scripts from the "locations" list in the order that they were specified in, and not in the 'default'/current/alpha order. (ie. include the path names in the sort, but honour the individual folder order specified).
https://flywaydb.org/documentation/commandline/migrate#locations
What did you see instead?
From what we understand the "locations" list is consumed, and execution commences in alphabetical order.
-The above feature would give us an additional amount of control over things, that we currently don't have-
Danke Sehr.
BrockSolutions Inc.
The text was updated successfully, but these errors were encountered: