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 4fdea76 commit 8b421d6
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 in order to drop the max_length restriction.
18 changes: 18 additions & 0 deletions pulp_rpm/app/migrations/0042_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', '0041_rbac_perms'),
]

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 8b421d6

Please sign in to comment.