Make meta not-null.
This commit is contained in:
parent
ab86a912cd
commit
80ef568397
19
django_etesync/migrations/0033_auto_20200317_2010.py
Normal file
19
django_etesync/migrations/0033_auto_20200317_2010.py
Normal 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,
|
||||||
|
),
|
||||||
|
]
|
@ -86,7 +86,7 @@ class CollectionItemRevision(models.Model):
|
|||||||
uid = models.CharField(db_index=True, unique=True, blank=False, null=False,
|
uid = models.CharField(db_index=True, unique=True, blank=False, null=False,
|
||||||
max_length=44, validators=[Base64Url256BitValidator])
|
max_length=44, validators=[Base64Url256BitValidator])
|
||||||
item = models.ForeignKey(CollectionItem, related_name='revisions', on_delete=models.CASCADE)
|
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')
|
chunks = models.ManyToManyField(CollectionItemChunk, related_name='items')
|
||||||
current = models.BooleanField(db_index=True, default=True, null=True)
|
current = models.BooleanField(db_index=True, default=True, null=True)
|
||||||
deleted = models.BooleanField(default=False)
|
deleted = models.BooleanField(default=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user