You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe a fluent expression syntax for Preconditions might be useful here instead. That chaining methodology might be less invasive and more flexible in the long-run since it would be easy to extend to arbitrary preconditions. Something to the effect of:
Effectively, Preconditions are like our Conditionals today, except they do not actually connect to the database to determine their truthiness.
Advantages could be:
Possibly improve error logging. If a migration command fails, we can explicitly state any preconditions that should be checked.
It might be possible for FluentMigrator to maintain a MVCC-like data structure of object changes, such that it knows if the precondition is true or not. People could then even "inject" a Database "WORLD STATE" into the Runner, and do a dry run to assert truthiness.
The text was updated successfully, but these errors were encountered:
I would love this feature, because currently I rely on preview for generating scripts, but Schema.Exists executes during script generation instead of generating the required script in the preview.
From #664 , @DustinVenegas wrote a good suggestion:
Effectively, Preconditions are like our Conditionals today, except they do not actually connect to the database to determine their truthiness.
Advantages could be:
The text was updated successfully, but these errors were encountered: