Skip to content

ImportedFile: remove md5 field #8111

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

Merged
merged 1 commit into from
Apr 15, 2021
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
17 changes: 17 additions & 0 deletions readthedocs/projects/migrations/0072_remove_md5_field.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.20 on 2021-04-15 18:40

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('projects', '0071_add_env_var_privacy'),
]

operations = [
migrations.RemoveField(
model_name='importedfile',
name='md5',
),
]
1 change: 0 additions & 1 deletion readthedocs/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,6 @@ class ImportedFile(models.Model):
# of 4096 characters for most filesystems (including EXT4).
# https://github.com/rtfd/readthedocs.org/issues/5061
path = models.CharField(_('Path'), max_length=4096)
md5 = models.CharField(_('MD5 checksum'), max_length=255, null=True)
commit = models.CharField(_('Commit'), max_length=255)
build = models.IntegerField(_('Build id'), null=True)
modified_date = models.DateTimeField(_('Modified date'), auto_now=True)
Expand Down
2 changes: 0 additions & 2 deletions readthedocs/rtd_tests/tests/test_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,13 @@ def setUp(self):
version=self.external_version,
name='file.html',
path='file.html',
md5='abcdef',
commit='1234567890abcdef',
)
self.internal_html_file = HTMLFile.objects.create(
project=self.pip,
version=self.internal_version,
name='file.html',
path='file.html',
md5='abcdef',
commit='1234567890abcdef',
)

Expand Down