This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
forked from pulp/pulp_rpm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added uniq constraint to UpdateRecordPackage Added rpm-datarepair command to deduplicate UpdateCollectionPackages if duplicates already in DB. closes: pulp#2754 pulp#2754
- Loading branch information
1 parent
3f30ee4
commit bd1fae7
Showing
4 changed files
with
48 additions
and
1 deletion.
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 @@ | ||
Added unique constraint for advisory collection packages. Added data repair command in case any duplicates already exists ``pulpcore-manager rpm-datarepair 2754``. |
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
17 changes: 17 additions & 0 deletions
17
pulp_rpm/app/migrations/0046_alter_updatecollectionpackage_unique_together.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,17 @@ | ||
# Generated by Django 3.2.15 on 2022-09-09 08:29 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("rpm", "0045_noartifact_modules"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name="updatecollectionpackage", | ||
unique_together={("name", "epoch", "version", "release", "arch", "update_collection")}, | ||
), | ||
] |
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