-
Notifications
You must be signed in to change notification settings - Fork 48
Force upgrade for audit instance and added force upgrade to Powershell #3805
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
Conversation
src/ServiceControl.Management.PowerShell/Cmdlets/AuditInstances/InvokeAuditUpgrade.cs
Outdated
Show resolved
Hide resolved
src/ServiceControl.Config/Commands/ForceUpgradeAuditInstanceCommand.cs
Outdated
Show resolved
Hide resolved
src/ServiceControl.Config/Commands/ForceUpgradeAuditInstanceCommand.cs
Outdated
Show resolved
Hide resolved
src/ServiceControl.Config/Commands/ForceUpgradeAuditInstanceCommand.cs
Outdated
Show resolved
Hide resolved
| DisableFullTextSearchOnBodies = DisableFullTextSearchOnBodies, | ||
| UpgradeInfo = | ||
| UpgradeControl.GetUpgradeInfoForTargetVersion(installer.ZipInfo.Version, instance.Version), | ||
| UpgradeInfo = UpgradeControl.GetUpgradeInfoForTargetVersion(installer.ZipInfo.Version, instance.Version), |
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.
Note that the continued references to installer.ZipInfo.Version are silly. Every installer and zip available in the app is going to be the same version, and that version is easily accessible using Constants.CurrentVersion. Using the installer for that just makes all this code harder to refactor.
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.
The code doesn't compile on this so I just removed this whole line
1fdacdc to
f021a4a
Compare
src/ServiceControl.Management.PowerShell/Cmdlets/AuditInstances/InvokeAuditUpgrade.cs
Outdated
Show resolved
Hide resolved
...Management.PowerShell/Cmdlets/ServiceControlInstances/InvokeServiceControlInstanceUpgrade.cs
Outdated
Show resolved
Hide resolved
f021a4a to
52cf898
Compare
Invoke-ServiceControlAuditInstanceUpgradeandInvoke-ServiceControlInstanceUpgradenow have-ForceRecreateDatabaseswitch. When set the database path will be moved and the persister manifest will be forced to the latest Raven engine.Forceswitch