Set lock_version to default to 0, non-null

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

We've had to monkey patch optimistic locking to handle non-null values in gitlab-ce!7867. We had to revert it in gitlab-ce!5245 because it took more than an hour to migrate issues and merge requests.

I think we want to make this the default, but if it takes significant downtime we will have to reconsider.

/cc: @godfat, @vsizov, @yorickpeterse

Edited Sep 13, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading