Trivial updates.
[wolnelektury.git] / src / dictionary / migrations / 0002_auto_20141006_1422.py
1 from django.db import models, migrations
2 import django.db.models.deletion
3
4
5 class Migration(migrations.Migration):
6
7     dependencies = [
8         ('catalogue', '0004_remove_booktags_count_related_info'),
9         ('dictionary', '0001_initial'),
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='NoteSource',
15             fields=[
16                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17                 ('anchor', models.CharField(max_length=64)),
18                 ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
19                 ('note', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dictionary.Note')),
20             ],
21             options={
22                 'ordering': ['book'],
23             },
24             bases=(models.Model,),
25         ),
26         migrations.RemoveField(
27             model_name='note',
28             name='anchor',
29         ),
30         migrations.RemoveField(
31             model_name='note',
32             name='book',
33         ),
34         migrations.AddField(
35             model_name='note',
36             name='fn_type',
37             field=models.CharField(default='', max_length=10, db_index=True),
38             preserve_default=False,
39         ),
40         migrations.AddField(
41             model_name='note',
42             name='language',
43             field=models.CharField(default='', max_length=10, db_index=True),
44             preserve_default=False,
45         ),
46         migrations.AddField(
47             model_name='note',
48             name='qualifier',
49             field=models.CharField(default='', max_length=128, db_index=True, blank=True),
50             preserve_default=False,
51         ),
52     ]