From e96fc36947a41ee989fc2c06666eef950bc0cc50 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Thu, 15 Apr 2021 13:42:20 -0500 Subject: [PATCH] ImportedFile: remove md5 field Ref https://github.com/readthedocs/readthedocs.org/pull/8025 --- .../migrations/0072_remove_md5_field.py | 17 +++++++++++++++++ readthedocs/projects/models.py | 1 - readthedocs/rtd_tests/tests/test_managers.py | 2 -- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 readthedocs/projects/migrations/0072_remove_md5_field.py diff --git a/readthedocs/projects/migrations/0072_remove_md5_field.py b/readthedocs/projects/migrations/0072_remove_md5_field.py new file mode 100644 index 00000000000..b1568c570d2 --- /dev/null +++ b/readthedocs/projects/migrations/0072_remove_md5_field.py @@ -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', + ), + ] diff --git a/readthedocs/projects/models.py b/readthedocs/projects/models.py index de0a3a9b392..23a89466f7a 100644 --- a/readthedocs/projects/models.py +++ b/readthedocs/projects/models.py @@ -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) diff --git a/readthedocs/rtd_tests/tests/test_managers.py b/readthedocs/rtd_tests/tests/test_managers.py index e969f424f41..deb024e6416 100644 --- a/readthedocs/rtd_tests/tests/test_managers.py +++ b/readthedocs/rtd_tests/tests/test_managers.py @@ -372,7 +372,6 @@ def setUp(self): version=self.external_version, name='file.html', path='file.html', - md5='abcdef', commit='1234567890abcdef', ) self.internal_html_file = HTMLFile.objects.create( @@ -380,7 +379,6 @@ def setUp(self): version=self.internal_version, name='file.html', path='file.html', - md5='abcdef', commit='1234567890abcdef', )