Ticket #29496: 0025_custom_layouts_changes.py

File 0025_custom_layouts_changes.py, 893 bytes (added by Peter Levi, 6 years ago)

migration #1 - schema changes to add new uuid fields

Line 
1# Generated by Django 2.0.6 on 2018-06-12 12:17
2import uuid
3
4from django.db import migrations, models
5import django.utils.timezone
6
7
8from common.migration_utils import CustomMigration
9
10
11class Migration(CustomMigration):
12
13 dependencies = [
14 ('vario', '0024_populate_tasktags'),
15 ]
16
17 operations = [
18 # prepare to migrate to UUID PKs for ExampleLayout and LayoutField
19 migrations.AddField(
20 model_name='examplelayout',
21 name='uuid',
22 field=models.UUIDField(null=True, default=uuid.uuid4),
23 ),
24 migrations.AddField(
25 model_name='layoutfield',
26 name='uuid',
27 field=models.UUIDField(null=True, default=uuid.uuid4),
28 ),
29 migrations.AddField(
30 model_name='layoutfield',
31 name='temp_layout',
32 field=models.UUIDField(null=True),
33 ),
34 ]
Back to Top