-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add SyncIndexes schema upgrade mode #181
Conversation
Add extension methods on IActionSequnece to check whether it contains expected actions Add condition in upgrade process for syncing indexes Add tests Bump version
Orm/Xtensive.Orm/Modelling/Actions/Extensions/ActionSequenceExtensions.cs
Outdated
Show resolved
Hide resolved
Orm/Xtensive.Orm/Modelling/Actions/Extensions/ActionSequenceExtensions.cs
Outdated
Show resolved
Hide resolved
if (result.HasUnsafeActions || | ||
!result.UpgradeActions.ContainsOnlyModificationOf<SecondaryIndexInfo>()) | ||
throw new SchemaSynchronizationException(result); | ||
goto case SchemaUpgradeMode.Perform; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets change this to goto case SchemaUpgradeMode.PerformSafely;
and remove if (result.HasUnsafeActions
checking
May be to rename this enum constant to .SyncIndexesSafely
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
if (result.HasUnsafeActions || | ||
!result.UpgradeActions.ContainsOnlyModificationOf<SecondaryIndexInfo>()) | ||
throw new SchemaSynchronizationException(result); | ||
goto case SchemaUpgradeMode.Perform; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same notes
Version.props
Outdated
@@ -2,7 +2,7 @@ | |||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
|
|||
<PropertyGroup> | |||
<DoVersion>7.2.0.115</DoVersion> | |||
<DoVersion>7.2.0.116</DoVersion> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't bump version in Pull Request
Because some other PRs may be merged earlier
I'm bumping it in master-servicetitan
branch just before deploying nuget
Add extension methods on IActionSequnece to check whether it contains expected actions
Add condition in upgrade process for syncing indexes Add tests
Bump version