Skip to content

Commit

Permalink
Increase the size of RepoMetadataFile.data_type
Browse files Browse the repository at this point in the history
Closes pulp#2501
  • Loading branch information
quba42 committed May 2, 2022
1 parent 7e2cf09 commit c04a785
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/2501.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Converted RepoMetadataFile.data_type to TextField to remove its restrictive max_size.
18 changes: 18 additions & 0 deletions pulp_rpm/app/migrations/0041_alter_repometadatafile_data_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.13 on 2022-05-02 07:36

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('rpm', '0040_rpmalternatecontentsource'),
]

operations = [
migrations.AlterField(
model_name='repometadatafile',
name='data_type',
field=models.TextField(),
),
]
2 changes: 1 addition & 1 deletion pulp_rpm/app/models/custom_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RepoMetadataFile(Content):

TYPE = "repo_metadata_file"

data_type = models.CharField(max_length=20)
data_type = models.TextField()
checksum_type = models.CharField(max_length=6)
checksum = models.CharField(max_length=128)
relative_path = models.TextField()
Expand Down

0 comments on commit c04a785

Please sign in to comment.