0003_auto_20160122_1651.py
1.23 KB
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dictionary', '0021_auto_20160115_1328'),
('patterns', '0009_auto_20151217_1633'),
('history', '0002_auto_20160108_1209'),
]
operations = [
migrations.CreateModel(
name='HistoryFrame',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('transaction_began', models.DateTimeField(db_index=True)),
('operation', models.CharField(max_length=120)),
('lexeme', models.ForeignKey(blank=True, to='dictionary.Lexeme', null=True)),
('pattern', models.ForeignKey(blank=True, to='patterns.Pattern', null=True)),
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
],
),
migrations.AddField(
model_name='history',
name='frame_id',
field=models.ForeignKey(to='history.HistoryFrame', null=True),
),
]