0012_auto_20150307_1323.py
63 lines
| 2.0 KiB
| text/x-python
|
PythonLexer
|
r1015 | # -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||||
from django.db import models, migrations | ||||
class Migration(migrations.Migration): | ||||
dependencies = [ | ||||
('boards', '0011_notification'), | ||||
] | ||||
operations = [ | ||||
migrations.CreateModel( | ||||
name='GlobalId', | ||||
fields=[ | ||||
('id', models.AutoField(serialize=False, auto_created=True, primary_key=True, verbose_name='ID')), | ||||
('key', models.TextField()), | ||||
('key_type', models.TextField()), | ||||
('local_id', models.IntegerField()), | ||||
], | ||||
options={ | ||||
}, | ||||
bases=(models.Model,), | ||||
), | ||||
migrations.CreateModel( | ||||
name='KeyPair', | ||||
fields=[ | ||||
('id', models.AutoField(serialize=False, auto_created=True, primary_key=True, verbose_name='ID')), | ||||
('public_key', models.TextField()), | ||||
('private_key', models.TextField()), | ||||
('key_type', models.TextField()), | ||||
('primary', models.BooleanField(default=False)), | ||||
], | ||||
options={ | ||||
}, | ||||
bases=(models.Model,), | ||||
), | ||||
migrations.CreateModel( | ||||
name='Signature', | ||||
fields=[ | ||||
('id', models.AutoField(serialize=False, auto_created=True, primary_key=True, verbose_name='ID')), | ||||
('key_type', models.TextField()), | ||||
('key', models.TextField()), | ||||
('signature', models.TextField()), | ||||
], | ||||
options={ | ||||
}, | ||||
bases=(models.Model,), | ||||
), | ||||
migrations.AddField( | ||||
model_name='post', | ||||
name='global_id', | ||||
field=models.OneToOneField(to='boards.GlobalId', null=True, blank=True), | ||||
preserve_default=True, | ||||
), | ||||
migrations.AddField( | ||||
model_name='post', | ||||
name='signature', | ||||
field=models.ManyToManyField(null=True, blank=True, to='boards.Signature'), | ||||
preserve_default=True, | ||||
), | ||||
] | ||||