Clean up schema for table remote_mirrors

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

  • Label this issue
  • Close this issue

Per 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
  • Wrong data type: last_update_at should be timestamptz
  • Wrong data type: last_successful_update_at should be timestamptz
  • Missing constraint: project_id NOT NULL
  • Missing constraint: UNIQUE (project_id) (only 1 project_id violates this rule)
  • Duplicate data: update_status could be an enum or 4-byte int column
  • Questionable index: sync_time
  • Updates / status / et al might be better as an independent table
Edited Sep 13, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading