-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: ZDU finalize Collection Version sha256
[noissue]
- Loading branch information
Showing
7 changed files
with
74 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Added the final migration to make the sha256 of the collection version artifact the uniqueness | ||
constraint. This allows users to serve their own interpretation of the content in their private | ||
repositories. | ||
The migration will only succeed if all the content has been adjusted. To account for content that | ||
was not migrated by the migration shipped with 0.22.0, you can run the content repair command | ||
``datarepair-ansible-collection-sha256`` prior to upgrading. | ||
This version removed the content repair command. |
56 changes: 0 additions & 56 deletions
56
pulp_ansible/app/management/commands/datarepair-ansible-collection-sha256.py
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
pulp_ansible/app/migrations/0058_collectionversion_unique_sha256.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 3.2.14 on 2022-07-21 23:05 | ||
|
||
from django.db import migrations, models | ||
from pulpcore.plugin.migrations import RequireVersion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ansible', '0057_collectionversion_sha256_migrate'), | ||
('core', '0110_apiappstatus'), | ||
] | ||
|
||
operations = [ | ||
# TODO adjust this version!!! | ||
RequireVersion("ansible", "0.22.0"), | ||
migrations.AlterField( | ||
model_name='collectionversion', | ||
name='sha256', | ||
field=models.CharField(db_index=True, max_length=64, null=False), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='collectionversion', | ||
unique_together={('sha256',)}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters