Migrate Versions to follow SemVer convention
Migrate existing versions of catalog resources to populate the semver_* columns. This should include both resources that are already using semantic versioning - 1.2.3 to the ones that are using two or less numbers 1 1.x
NOTE - the tag should NOT be redone, just the representation of that version in our backend (the semver_* columns). Disregard the v for now.
Details:
1.0.5 is version.name
::Gitlab::Regex.semver_regex.match('1.0.5') =>
#<MatchData "1.0.5" major:"1" minor:"0" patch:"5" prerelease:nil build:nil> which you can use to populate semver_major, semver_minor, semver_patch - for versions that are not following the three digit 1.x.x, a 0 can be used.
Edited by Laura Montemayor