0001_initial.py
1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('patterns', '0006_auto_20151213_1153'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dictionary', '0011_auto_20151213_1153'),
]
state_operations = [
migrations.CreateModel(
name='History',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('table_name', models.CharField(max_length=120, db_column=b'table_name_')),
('column_name', models.CharField(max_length=120, db_column=b'column_name_', blank=True)),
('timestamp', models.DateTimeField(db_column=b'timestamp_')),
('old_value', models.TextField(db_column=b'old_value_', blank=True)),
('new_value', models.TextField(db_column=b'new_value_', blank=True)),
('row_id', models.IntegerField(db_column=b'id_')),
('operation', models.CharField(max_length=120, db_column=b'operation_')),
('table_oid', models.IntegerField(db_column=b'table_oid_')),
('column_ord', models.IntegerField(db_column=b'ordinal_position_of_column_')),
('transaction_began', models.DateTimeField(db_column=b'transaction_began_', db_index=True)),
('lexeme', models.ForeignKey(db_column=b'lexeme_id_', blank=True, to='dictionary.Lexeme', null=True)),
('pattern', models.ForeignKey(db_column=b'pattern_id_', blank=True, to='patterns.Pattern', null=True)),
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, db_column=b'user_id_')),
],
options={
'db_table': 'history',
},
),
]
operations = [
migrations.SeparateDatabaseAndState(state_operations=state_operations),
]