Actions
Refactor #2185
closedPulp - Refactor #2116: Migrate mongo collections to postgres tables.
Migrate repo_content_units collection to repository_content table.
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
The data in the repo_content_units collection needs to be migrated into the repository_content (join) table in postgres.
For each field in the repo_content_units document:
repo_content_units => repository_content
____________________|____________________________
=> id (generated)
created => created
repo_id => repository_id (by Foreign Key relation)
unit_id => content_id (by Foreign Key relation)
unit_type_id => (omitted: see [1])
[1] The master-detail modeling of content means that every content (unit) has a record in the master table and
thus a unique id. The combination of id and type is not longer needed.
Related issues
Updated by jortel@redhat.com over 8 years ago
- Copied from Refactor #2140: Migrate repo_distributors collection to repository_distributor table. added
Updated by ttereshc over 4 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Done as a part of the initial migration plugin release.
Updated by ttereshc over 4 years ago
- Project changed from Pulp to Migration Plugin
Actions