0005_auto_20151213_0132.py 1.4 KB
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('dictionary', '0009_auto_20151213_0132'),
        ('patterns', '0004_pattern'),
    ]

    state_operations = [
        migrations.CreateModel(
            name='Ending',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('index', models.IntegerField(db_column=b'zind')),
                ('string', models.CharField(max_length=16, db_column=b'zak', blank=True)),
                ('base_form_label', models.ForeignKey(to='patterns.BaseFormLabel', db_column=b'efobaz')),
                ('pattern', models.ForeignKey(related_name='endings', db_column=b'w_id', to='patterns.Pattern')),
                ('qualifiers', models.ManyToManyField(to='dictionary.Qualifier', db_table=b'kwalifikatory_zakonczen', blank=True)),
            ],
            options={
                'ordering': ['base_form_label__index', 'index'],
                'db_table': 'zakonczenia',
            },
        ),
        migrations.AlterUniqueTogether(
            name='ending',
            unique_together=set([('pattern', 'base_form_label', 'index')]),
        ),
    ]

    operations = [
        migrations.SeparateDatabaseAndState(state_operations=state_operations),
    ]