Make meta not-null.

master
Tom Hacohen 5 years ago
parent ab86a912cd
commit 80ef568397

@ -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,
),
]

@ -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)

Loading…
Cancel
Save