Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the size of RepoMetadataFile.data_type #2510

Merged
merged 1 commit into from
May 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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