Revision: add metadata field.

master
Tom Hacohen 5 years ago
parent f8a94eeb04
commit d1df6db8b1

@ -0,0 +1,18 @@
# Generated by Django 3.0.3 on 2020-03-12 14:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_etesync', '0025_auto_20200312_1350'),
]
operations = [
migrations.AddField(
model_name='collectionitemrevision',
name='meta',
field=models.BinaryField(blank=True, editable=True, null=True),
),
]

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

Loading…
Cancel
Save