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 7 years ago. Updated over 3 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
Actions #1

Updated by jortel@redhat.com over 7 years ago

  • Copied from Refactor #2140: Migrate repo_distributors collection to repository_distributor table. added
Actions #2

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #3

Updated by ttereshc over 3 years ago

  • Status changed from NEW to CLOSED - DUPLICATE

Done as a part of the initial migration plugin release.

Actions #4

Updated by ttereshc over 3 years ago

  • Project changed from Pulp to Migration Plugin

Also available in: Atom PDF