summaryrefslogtreecommitdiff
path: root/app/lttr/migrations
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf>2021-03-24 14:22:04 -0400
committerluxagraf <sng@luxagraf>2021-03-24 14:22:04 -0400
commit5b86e4c986b39bc1027d371e9c108fa30ef3f052 (patch)
tree22798d834af453abed02f53742acab1785135f63 /app/lttr/migrations
parente807fb3c0e738b512acb68d230e4aae631d3c76d (diff)
lttr: migrated to new post -> lttr -> send system.
Diffstat (limited to 'app/lttr/migrations')
-rw-r--r--app/lttr/migrations/0015_newnewslettermailing.py35
-rw-r--r--app/lttr/migrations/0016_mailingstatus_newnewsletter_mailing.py20
-rw-r--r--app/lttr/migrations/0017_auto_20210324_1330.py19
-rw-r--r--app/lttr/migrations/0018_auto_20210324_1331.py23
-rw-r--r--app/lttr/migrations/0019_auto_20210324_1350.py20
-rw-r--r--app/lttr/migrations/0020_auto_20210324_1351.py19
-rw-r--r--app/lttr/migrations/0021_auto_20210324_1352.py18
7 files changed, 154 insertions, 0 deletions
diff --git a/app/lttr/migrations/0015_newnewslettermailing.py b/app/lttr/migrations/0015_newnewslettermailing.py
new file mode 100644
index 0000000..0d8fa34
--- /dev/null
+++ b/app/lttr/migrations/0015_newnewslettermailing.py
@@ -0,0 +1,35 @@
+# Generated by Django 3.1 on 2021-03-24 12:54
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('media', '0008_auto_20201202_1155'),
+ ('posts', '0019_auto_20210323_2155'),
+ ('lttr', '0014_newsletter_intro'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='NewNewsletterMailing',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.CharField(blank=True, max_length=250)),
+ ('subtitle', models.CharField(blank=True, max_length=250, null=True)),
+ ('body_html', models.TextField(blank=True)),
+ ('body_email_html', models.TextField(blank=True)),
+ ('body_markdown', models.TextField(blank=True)),
+ ('pub_date', models.DateTimeField(blank=True)),
+ ('issue', models.PositiveIntegerField(blank=True)),
+ ('featured_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')),
+ ('newsletter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lttr.newsletter')),
+ ('post', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='posts.post')),
+ ],
+ options={
+ 'ordering': ('-title', '-pub_date'),
+ },
+ ),
+ ]
diff --git a/app/lttr/migrations/0016_mailingstatus_newnewsletter_mailing.py b/app/lttr/migrations/0016_mailingstatus_newnewsletter_mailing.py
new file mode 100644
index 0000000..dfe9463
--- /dev/null
+++ b/app/lttr/migrations/0016_mailingstatus_newnewsletter_mailing.py
@@ -0,0 +1,20 @@
+# Generated by Django 3.1 on 2021-03-24 13:23
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lttr', '0015_newnewslettermailing'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='mailingstatus',
+ name='newnewsletter_mailing',
+ field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='lttr.newnewslettermailing', verbose_name='newsletter'),
+ preserve_default=False,
+ ),
+ ]
diff --git a/app/lttr/migrations/0017_auto_20210324_1330.py b/app/lttr/migrations/0017_auto_20210324_1330.py
new file mode 100644
index 0000000..3519eec
--- /dev/null
+++ b/app/lttr/migrations/0017_auto_20210324_1330.py
@@ -0,0 +1,19 @@
+# Generated by Django 3.1 on 2021-03-24 13:30
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lttr', '0016_mailingstatus_newnewsletter_mailing'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='mailingstatus',
+ name='newnewsletter_mailing',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lttr.newnewslettermailing', verbose_name='newnewsletter'),
+ ),
+ ]
diff --git a/app/lttr/migrations/0018_auto_20210324_1331.py b/app/lttr/migrations/0018_auto_20210324_1331.py
new file mode 100644
index 0000000..1dc16a1
--- /dev/null
+++ b/app/lttr/migrations/0018_auto_20210324_1331.py
@@ -0,0 +1,23 @@
+# Generated by Django 3.1 on 2021-03-24 13:31
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lttr', '0017_auto_20210324_1330'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='mailingstatus',
+ name='newsletter_mailing',
+ ),
+ migrations.AlterField(
+ model_name='mailingstatus',
+ name='newnewsletter_mailing',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lttr.newnewslettermailing', verbose_name='newsletter'),
+ ),
+ ]
diff --git a/app/lttr/migrations/0019_auto_20210324_1350.py b/app/lttr/migrations/0019_auto_20210324_1350.py
new file mode 100644
index 0000000..47b0f38
--- /dev/null
+++ b/app/lttr/migrations/0019_auto_20210324_1350.py
@@ -0,0 +1,20 @@
+# Generated by Django 3.1 on 2021-03-24 13:50
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('media', '0008_auto_20201202_1155'),
+ ('taxonomy', '0006_auto_20210107_1611'),
+ ('books', '0016_bookhighlight_is_public'),
+ ('lttr', '0018_auto_20210324_1331'),
+ ]
+
+ operations = [
+ migrations.RenameModel(
+ old_name='NewsletterMailing',
+ new_name='OldNewsletterMailing',
+ ),
+ ]
diff --git a/app/lttr/migrations/0020_auto_20210324_1351.py b/app/lttr/migrations/0020_auto_20210324_1351.py
new file mode 100644
index 0000000..e4315dc
--- /dev/null
+++ b/app/lttr/migrations/0020_auto_20210324_1351.py
@@ -0,0 +1,19 @@
+# Generated by Django 3.1 on 2021-03-24 13:51
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('posts', '0019_auto_20210323_2155'),
+ ('media', '0008_auto_20201202_1155'),
+ ('lttr', '0019_auto_20210324_1350'),
+ ]
+
+ operations = [
+ migrations.RenameModel(
+ old_name='NewNewsletterMailing',
+ new_name='NewsletterMailing',
+ ),
+ ]
diff --git a/app/lttr/migrations/0021_auto_20210324_1352.py b/app/lttr/migrations/0021_auto_20210324_1352.py
new file mode 100644
index 0000000..42d6b41
--- /dev/null
+++ b/app/lttr/migrations/0021_auto_20210324_1352.py
@@ -0,0 +1,18 @@
+# Generated by Django 3.1 on 2021-03-24 13:52
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lttr', '0020_auto_20210324_1351'),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name='mailingstatus',
+ old_name='newnewsletter_mailing',
+ new_name='newsletter_mailing',
+ ),
+ ]