mirror of
https://github.com/etesync/server
synced 2024-11-19 15:28:08 +00:00
267d749c45
Each collection now has an item and the item's UID is the collections UID. This lets us manipulate collections just like items, and as part of transactions. This is significant because it lets us change them as part of transactions!
32 lines
870 B
Python
32 lines
870 B
Python
# Generated by Django 3.0.3 on 2020-06-23 08:20
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('django_etebase', '0015_collectionitemrevision_salt'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='collection',
|
|
name='main_item',
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='parent', to='django_etebase.CollectionItem'),
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='collection',
|
|
unique_together=set(),
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='collection',
|
|
name='uid',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='collection',
|
|
name='version',
|
|
),
|
|
]
|