Skip to content

Commit b56ccae

Browse files
authored
HTMLFile: make md5 field nullable (#8025)
This is so we can delete it safely in the next release.
1 parent 1302f94 commit b56ccae

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 2.2.19 on 2021-03-17 15:23
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('projects', '0069_migrate_protected_projects'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='importedfile',
15+
name='md5',
16+
field=models.CharField(max_length=255, null=True, verbose_name='MD5 checksum'),
17+
),
18+
]

readthedocs/projects/models.py

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

0 commit comments

Comments
 (0)