Files
gitlabhq/db/docs/batched_background_migrations/deduplicate_lfs_objects_projects.yml
2024-11-04 21:24:06 +00:00

19 lines
969 B
YAML

---
migration_job_name: DeduplicateLfsObjectsProjects
description: >-
This migration deduplicates lfs_objects_projects by lfs_object_id, project_id and repository_type.
After the migration is finalized, we need to add a unique index on all three columns to ensure
data consistency since the unique validation already exists at the model level.
1) Originally introduced by https://gitlab.com/gitlab-org/gitlab/-/merge_requests/154323
Re-enqueued because we found some duplicates were still being introduced
2) Originally re-enqueued in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167468
Re-enqueued a second time since we found some duplicates when repository_type is NULL
feature_category: source_code_management
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167468
milestone: '17.5'
queued_migration_version: 20240927202948
finalize_after: '2024-10-17' # required upgrade stop due date
finalized_by: 20241031132007