From 41deb3a0287b07f8169db303cd7d56229a73212e Mon Sep 17 00:00:00 2001 From: kthoden Date: Tue, 8 Sep 2020 07:45:41 +0200 Subject: [PATCH] Add migrations in eoaauthors --- src/eoaauthors2/migrations/0001_initial.py | 48 +++++++++++++++++ .../migrations/0002_auto_20200814_1433.py | 51 +++++++++++++++++++ .../migrations/0003_author_reverse_names.py | 18 +++++++ 3 files changed, 117 insertions(+) create mode 100644 src/eoaauthors2/migrations/0001_initial.py create mode 100644 src/eoaauthors2/migrations/0002_auto_20200814_1433.py create mode 100644 src/eoaauthors2/migrations/0003_author_reverse_names.py diff --git a/src/eoaauthors2/migrations/0001_initial.py b/src/eoaauthors2/migrations/0001_initial.py new file mode 100644 index 0000000..f8af5b3 --- /dev/null +++ b/src/eoaauthors2/migrations/0001_initial.py @@ -0,0 +1,48 @@ +# Generated by Django 2.1.5 on 2020-08-14 14:24 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ('cms', '0022_auto_20180620_1551'), + ] + + operations = [ + migrations.CreateModel( + name='Author', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200, unique=True)), + ('description', models.CharField(max_length=1000)), + ], + options={ + 'verbose_name_plural': 'Authors', + }, + ), + migrations.CreateModel( + name='EOAAuthorListModel', + fields=[ + ('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='eoaauthors2_eoaauthorlistmodel', serialize=False, to='cms.CMSPlugin')), + ], + options={ + 'abstract': False, + }, + bases=('cms.cmsplugin',), + ), + migrations.CreateModel( + name='EOAAuthorModel', + fields=[ + ('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='eoaauthors2_eoaauthormodel', serialize=False, to='cms.CMSPlugin')), + ('series', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='eoaauthors2.Author')), + ], + options={ + 'abstract': False, + }, + bases=('cms.cmsplugin',), + ), + ] diff --git a/src/eoaauthors2/migrations/0002_auto_20200814_1433.py b/src/eoaauthors2/migrations/0002_auto_20200814_1433.py new file mode 100644 index 0000000..05bf030 --- /dev/null +++ b/src/eoaauthors2/migrations/0002_auto_20200814_1433.py @@ -0,0 +1,51 @@ +# Generated by Django 2.1.5 on 2020-08-14 14:33 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('eoaauthors2', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='author', + name='description', + ), + migrations.RemoveField( + model_name='author', + name='name', + ), + migrations.AddField( + model_name='author', + name='authorfirstname', + field=models.CharField(max_length=2000, null=True), + ), + migrations.AddField( + model_name='author', + name='authorlastname', + field=models.CharField(max_length=2000, null=True), + ), + migrations.AddField( + model_name='author', + name='biography', + field=models.TextField(null=True), + ), + migrations.AddField( + model_name='author', + name='homepage', + field=models.CharField(blank=True, max_length=2000, null=True), + ), + migrations.AddField( + model_name='author', + name='photo', + field=models.ImageField(blank=True, null=True, upload_to='authors'), + ), + migrations.AddField( + model_name='author', + name='slugfield', + field=models.SlugField(blank=True, max_length=500, null=True, unique=True), + ), + ] diff --git a/src/eoaauthors2/migrations/0003_author_reverse_names.py b/src/eoaauthors2/migrations/0003_author_reverse_names.py new file mode 100644 index 0000000..c668da5 --- /dev/null +++ b/src/eoaauthors2/migrations/0003_author_reverse_names.py @@ -0,0 +1,18 @@ +# Generated by Django 2.1.5 on 2020-08-17 10:05 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('eoaauthors2', '0002_auto_20200814_1433'), + ] + + operations = [ + migrations.AddField( + model_name='author', + name='reverse_names', + field=models.BooleanField(help_text='For East-Asian names, the last name is printed first.', null=True), + ), + ]