Clean up schema for table path_locks

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

  • Label this issue
  • Close this issue

From https://gitlab.com/gitlab-com/infrastructure/issues/1709 (private to GitLab employees):

  • Wrong data type: created_at should be timestamptz
  • Wrong data type: updated_at should be timestamptz
  • Missing constraint: project_id NOT NULL
  • Missing constraint: user_id NOT NULL
  • Missing constraint: UNIQUE (path, project_id, user_id) (3 cases where this rule is violated), the user_id here makes no sense
Edited Sep 13, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading