diff options
Diffstat (limited to 'app/books/migrations')
-rw-r--r-- | app/books/migrations/0001_initial.py | 38 | ||||
-rw-r--r-- | app/books/migrations/0002_book_other_link.py | 18 | ||||
-rw-r--r-- | app/books/migrations/__init__.py | 0 |
3 files changed, 56 insertions, 0 deletions
diff --git a/app/books/migrations/0001_initial.py b/app/books/migrations/0001_initial.py new file mode 100644 index 0000000..6257e40 --- /dev/null +++ b/app/books/migrations/0001_initial.py @@ -0,0 +1,38 @@ +# Generated by Django 3.2.6 on 2021-08-14 12:50 + +import books.models +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Book', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('sort_order', models.IntegerField(blank=True, db_index=True)), + ('title', models.CharField(max_length=200)), + ('author_last_name', models.CharField(max_length=200)), + ('author_first_name', models.CharField(max_length=200)), + ('slug', models.CharField(max_length=50)), + ('isbn', models.CharField(blank=True, max_length=100, null=True)), + ('body_markdown', models.TextField(blank=True)), + ('body_html', models.TextField(blank=True, null=True)), + ('pages', models.CharField(blank=True, max_length=5, null=True)), + ('amazon_link', models.CharField(blank=True, max_length=400, null=True)), + ('bookshop_link', models.CharField(blank=True, max_length=400, null=True)), + ('thriftbooks_link', models.CharField(blank=True, max_length=400, null=True)), + ('image', models.FileField(blank=True, null=True, upload_to=books.models.get_upload_path)), + ], + options={ + 'ordering': ['sort_order'], + 'abstract': False, + }, + ), + ] diff --git a/app/books/migrations/0002_book_other_link.py b/app/books/migrations/0002_book_other_link.py new file mode 100644 index 0000000..bf64351 --- /dev/null +++ b/app/books/migrations/0002_book_other_link.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.6 on 2021-08-14 13:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('books', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='book', + name='other_link', + field=models.CharField(blank=True, max_length=400, null=True), + ), + ] diff --git a/app/books/migrations/__init__.py b/app/books/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/books/migrations/__init__.py |