`ubcli migrate` now do NOT migrate scripts for the CURRENT version.
The condition:
if (fileModelVersion < dbVersions[f.model]) {
changed back to:
if (fileModelVersion <= dbVersions[f.model]) {
Reason:
- for NEW environments, condition
if (fileModelVersion < dbVersions[f.model]) {
did not excluded the current version's scripts and they were executed right after initialization on clean DB. It some cases (DocNet) it caused problems during rolling new environments.
History:
- this condition initially was "<=", but then changed to "<" for QA builds flow, when only prerelease part of version changed (and it is not tracked by ubcli, it tracks only major.minor.patch, but not prerelease)
- NOW we use "unreleased" folder and "ub-prepublish" package, which renames the "unreleased" folders during package publication to actual version number, so QA builds are no longer an issue, because the "unreleased" folders are processed by ubcli regardless version
- so it is safe to just change the condition back
Edited by Andrii Bezuglyi