-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix publications created by mirrored syncs not having checksum_type set
closes #3484
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 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 @@ | ||
Fix publications created by mirror_complete syncs not having checksum_type set properly. |
19 changes: 19 additions & 0 deletions
19
pulp_rpm/app/migrations/0060_rpmpublication_compression_type_empty.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,19 @@ | ||
# Generated by Django 4.2.5 on 2023-11-07 03:51 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def set_publication_checksum(apps, schema_editor): | ||
RpmPublication = apps.get_model("rpm", "RpmPublication") | ||
RpmPublication.objects.filter(checksum_type="").update(checksum_type="unknown") | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('rpm', '0059_rpmpublication_compression_type_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(set_publication_checksum), | ||
] |
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