Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix borked migration between 3.3.0 and 3.3.1+ schema. #1709

Merged
merged 1 commit into from
May 14, 2020

Conversation

dralley
Copy link
Contributor

@dralley dralley commented May 14, 2020

@@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='rpmrepository',
name='last_sync_revision_number',
field=models.CharField(max_length=20, null=True),
field=models.CharField(max_length=20),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems to work without re-modifying 0005, I think because null=False by default. Should I modify 0005 anyway?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I'm not sure, but I'd remove from 0005 as well. Less flipping it back and forth, and 0005 will be in it's original state.

@pulpbot
Copy link
Member

pulpbot commented May 14, 2020

Attached issue: https://pulp.plan.io/issues/6743

@dralley
Copy link
Contributor Author

dralley commented May 14, 2020

I tested this w/ the following scenarios:

  • Fresh install
  • Migration from 3.3.1 -> current
  • Migration from 3.3.0 -> current
  • Migration from 3.3.0 -> 3.3.1 -> current
  • Migration from 3.2.0 -> 3.3.0 -> 3.3.1 -> current
  • Migration from 3.2.0 -> current

@dralley dralley merged commit 72e616a into pulp:master May 14, 2020
@dralley dralley deleted the fix-migration branch May 14, 2020 20:20
@pulpbot pulpbot mentioned this pull request May 18, 2020
@pulpbot pulpbot mentioned this pull request May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants