Skip to content
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

DbUpMigration - Pattern for selecting scripts to be selected as RunAlways #54

Open
johanclasson opened this issue Feb 8, 2019 · 2 comments

Comments

@johanclasson
Copy link
Owner

This would allow a scenario where you would be able to control the execution order of journaled and not journaled scripts.

As of now you can only make the order like first running a bunch of journalled scirpts and then running the not journaled scripts.

@nitinjain1005
Copy link

I have scripts in one folder and want to set order of execution of somes scripts before others as they are dependents on others...

Any Idea how to handle this kind of scenario in Dbup migration task ?

@johanclasson
Copy link
Owner Author

johanclasson commented Sep 23, 2019

Is this really related to the RunAlways DbUp-feature?

Have you tried using setting the Script Execution Order-field?

  • Filename => Scripts will be executed with .OrderBy(i => i.Name)
  • File Path => Scripts will be executed with .OrderBy(i => i.FullName)
  • Folder Structure => Scripts will be executed as is reported by Directory.GetFiles(...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants