Support both 0 and NULL lock_versions
What does this MR do?
Ensures that issues and MRs left with a lock_version
of 0
after https://gitlab.com/gitlab-org/gitlab-ce/issues/55611 can be updated and destroyed.
This only affects instances that run nightlies, so it doesn't require a changelog item.
Does this MR meet the acceptance criteria?
-
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Security reports checked/validated by reviewer