1 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
4 from django.db import migrations, models
5 import django.db.models.deletion
8 class Migration(migrations.Migration):
14 migrations.CreateModel(
17 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18 ('prefix', models.CharField(max_length=10)),
19 ('suffix_from', models.IntegerField()),
20 ('suffix_to', models.IntegerField()),
21 ('ref_from', models.IntegerField()),
22 ('next_suffix', models.IntegerField()),
25 migrations.CreateModel(
28 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
29 ('datestamp', models.DateField(auto_now=True)),
30 ('suffix', models.IntegerField()),
31 ('product_form', models.CharField(max_length=4)),
32 ('product_form_detail', models.CharField(max_length=8, blank=True)),
33 ('title', models.CharField(max_length=256)),
34 ('part_number', models.CharField(max_length=64, blank=True)),
35 ('contributors', models.TextField()),
36 ('edition_type', models.CharField(max_length=4)),
37 ('edition_number', models.IntegerField(default=1)),
38 ('language', models.CharField(max_length=4)),
39 ('imprint', models.CharField(max_length=256)),
40 ('publishing_date', models.DateField()),
41 ('isbn_pool', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='isbn.ISBNPool')),