Skip to content

Commit d1e23e1

Browse files
authored
ImportedFile: remove md5 field (#8111)
Ref #8025
1 parent d8f64e5 commit d1e23e1

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated by Django 2.2.20 on 2021-04-15 18:40
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('projects', '0071_add_env_var_privacy'),
10+
]
11+
12+
operations = [
13+
migrations.RemoveField(
14+
model_name='importedfile',
15+
name='md5',
16+
),
17+
]

readthedocs/projects/models.py

-1
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,6 @@ class ImportedFile(models.Model):
13701370
# of 4096 characters for most filesystems (including EXT4).
13711371
# https://github.com/rtfd/readthedocs.org/issues/5061
13721372
path = models.CharField(_('Path'), max_length=4096)
1373-
md5 = models.CharField(_('MD5 checksum'), max_length=255, null=True)
13741373
commit = models.CharField(_('Commit'), max_length=255)
13751374
build = models.IntegerField(_('Build id'), null=True)
13761375
modified_date = models.DateTimeField(_('Modified date'), auto_now=True)

readthedocs/rtd_tests/tests/test_managers.py

-2
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,13 @@ def setUp(self):
372372
version=self.external_version,
373373
name='file.html',
374374
path='file.html',
375-
md5='abcdef',
376375
commit='1234567890abcdef',
377376
)
378377
self.internal_html_file = HTMLFile.objects.create(
379378
project=self.pip,
380379
version=self.internal_version,
381380
name='file.html',
382381
path='file.html',
383-
md5='abcdef',
384382
commit='1234567890abcdef',
385383
)
386384

0 commit comments

Comments
 (0)