Skip to content

`ubcli migrate` now do NOT migrate scripts for the CURRENT version.

Andrii Bezuglyi requested to merge fix/ubcli_do_not_migrate_cur_version into master

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

Merge request reports

Loading