Project

Profile

Help

Refactor #2185

closed

Pulp - Refactor #2116: Migrate mongo collections to postgres tables.

Migrate repo_content_units collection to repository_content table.

Added by jortel@redhat.com over 8 years ago. Updated over 4 years ago.

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

Copied from Pulp - Refactor #2140: Migrate repo_distributors collection to repository_distributor table.CLOSED - DUPLICATE

Actions

Also available in: Atom PDF