1
0
mirror of https://github.com/etesync/server synced 2024-11-18 23:08:08 +00:00
etesync-server/django_etesync/migrations/0009_auto_20200526_1535.py
Tom Hacohen 6e7ad92a12 Add missing migrations forgotten in the previous commit
Missing from: 73f4ff765c7713c9aa48dec2bfc4c3c1c0c7e9f3
2020-05-27 10:30:07 +03:00

24 lines
583 B
Python

# Generated by Django 3.0.3 on 2020-05-26 15:35
from django.db import migrations
def create_stokens(apps, schema_editor):
Stoken = apps.get_model('django_etesync', 'Stoken')
CollectionItemRevision = apps.get_model('django_etesync', 'CollectionItemRevision')
for rev in CollectionItemRevision.objects.all():
rev.stoken = Stoken.objects.create()
rev.save()
class Migration(migrations.Migration):
dependencies = [
('django_etesync', '0008_auto_20200526_1535'),
]
operations = [
migrations.RunPython(create_stokens),
]