Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Add models for pre0migrating pulp2 repository related data #11

Merged
merged 1 commit into from Aug 27, 2019

Conversation

goosemania
Copy link
Member

pulp3_repository_version (models.OneToOneField): Pulp 3 repository version which Pulp 2
repository was migrated to
"""
pulp2_repo_id = models.CharField(max_length=255) # in Pulp2 it might be longer?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use textfield then?wdyt?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can be but it's a part of a unique index now, so it's better be limited

repository was migrated to
"""
pulp2_repo_id = models.CharField(max_length=255) # in Pulp2 it might be longer?
pulp2_object_id = models.CharField(max_length=255)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the reason having both object_id and repo_id? can we refer only to repo_id?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we can run a migration multiple times, it's possible that a repo with a specific repo_id can be removed and then created again and it will be a completely different repo. Migration plugin needs to distinguish between those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants