Make meta not-null.

This commit is contained in:
Tom Hacohen 2020-03-17 22:10:33 +02:00
parent ab86a912cd
commit 80ef568397
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 3.0.3 on 2020-03-17 20:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_etesync', '0032_auto_20200317_1513'),
]
operations = [
migrations.AlterField(
model_name='collectionitemrevision',
name='meta',
field=models.BinaryField(default=b'', editable=True),
preserve_default=False,
),
]

View File

@ -86,7 +86,7 @@ class CollectionItemRevision(models.Model):
uid = models.CharField(db_index=True, unique=True, blank=False, null=False,
max_length=44, validators=[Base64Url256BitValidator])
item = models.ForeignKey(CollectionItem, related_name='revisions', on_delete=models.CASCADE)
meta = models.BinaryField(editable=True, blank=True, null=True)
meta = models.BinaryField(editable=True, blank=False, null=False)
chunks = models.ManyToManyField(CollectionItemChunk, related_name='items')
current = models.BooleanField(db_index=True, default=True, null=True)
deleted = models.BooleanField(default=False)