X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6280673f35e13e75e81c5b7821bd2a44a1831eab..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/src/dictionary/migrations/0002_auto_20141006_1422.py?ds=sidebyside diff --git a/src/dictionary/migrations/0002_auto_20141006_1422.py b/src/dictionary/migrations/0002_auto_20141006_1422.py new file mode 100644 index 000000000..a9bad32b9 --- /dev/null +++ b/src/dictionary/migrations/0002_auto_20141006_1422.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('catalogue', '0004_remove_booktags_count_related_info'), + ('dictionary', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='NoteSource', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('anchor', models.CharField(max_length=64)), + ('book', models.ForeignKey(to='catalogue.Book')), + ('note', models.ForeignKey(to='dictionary.Note')), + ], + options={ + 'ordering': ['book'], + }, + bases=(models.Model,), + ), + migrations.RemoveField( + model_name='note', + name='anchor', + ), + migrations.RemoveField( + model_name='note', + name='book', + ), + migrations.AddField( + model_name='note', + name='fn_type', + field=models.CharField(default='', max_length=10, db_index=True), + preserve_default=False, + ), + migrations.AddField( + model_name='note', + name='language', + field=models.CharField(default='', max_length=10, db_index=True), + preserve_default=False, + ), + migrations.AddField( + model_name='note', + name='qualifier', + field=models.CharField(default='', max_length=128, db_index=True, blank=True), + preserve_default=False, + ), + ]