summaryrefslogtreecommitdiff
path: root/app/lttr/migrations
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-08-03 18:38:32 -0400
committerluxagraf <sng@luxagraf.net>2020-08-03 18:38:32 -0400
commiteea8117ac3b58d8ac9eb1c9f94d27ac28fc67008 (patch)
tree0b0e9e178d6fd7242f5c95b7aa071a3e127f109d /app/lttr/migrations
parentb8d217c6781d713fb6fd1199cbdda84017a95c8d (diff)
added all lttr updates to backup
Diffstat (limited to 'app/lttr/migrations')
-rw-r--r--app/lttr/migrations/0006_auto_20200419_1617.py42
-rw-r--r--app/lttr/migrations/0007_auto_20200419_1627.py24
-rw-r--r--app/lttr/migrations/0008_auto_20200419_1629.py18
-rw-r--r--app/lttr/migrations/0009_newslettermailing_subtitle.py18
-rw-r--r--app/lttr/migrations/0010_newslettermailing_books.py19
5 files changed, 121 insertions, 0 deletions
diff --git a/app/lttr/migrations/0006_auto_20200419_1617.py b/app/lttr/migrations/0006_auto_20200419_1617.py
new file mode 100644
index 0000000..5f547c9
--- /dev/null
+++ b/app/lttr/migrations/0006_auto_20200419_1617.py
@@ -0,0 +1,42 @@
+# Generated by Django 2.1.2 on 2020-04-19 16:17
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lttr', '0005_auto_20200205_1606'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='MailingStatus',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('status', models.IntegerField(choices=[(-1, 'sent in test'), (0, 'sent'), (1, 'error'), (2, 'invalid email'), (4, 'opened'), (5, 'opened on site'), (6, 'link opened'), (7, 'unsubscription')], verbose_name='status')),
+ ('creation_date', models.DateTimeField(auto_now_add=True, verbose_name='creation date')),
+ ],
+ options={
+ 'verbose_name': 'subscriber mailing status',
+ 'verbose_name_plural': 'subscriber mailing statuses',
+ 'ordering': ('-creation_date',),
+ },
+ ),
+ migrations.AddField(
+ model_name='newslettermailing',
+ name='newsletter',
+ field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='lttr.Newsletter'),
+ ),
+ migrations.AddField(
+ model_name='mailingstatus',
+ name='newsletter_mailing',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lttr.NewsletterMailing', verbose_name='newsletter'),
+ ),
+ migrations.AddField(
+ model_name='mailingstatus',
+ name='subscriber',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lttr.Subscriber', verbose_name='subscriber'),
+ ),
+ ]
diff --git a/app/lttr/migrations/0007_auto_20200419_1627.py b/app/lttr/migrations/0007_auto_20200419_1627.py
new file mode 100644
index 0000000..7c39f44
--- /dev/null
+++ b/app/lttr/migrations/0007_auto_20200419_1627.py
@@ -0,0 +1,24 @@
+# Generated by Django 2.1.2 on 2020-04-19 16:27
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lttr', '0006_auto_20200419_1617'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='newslettermailing',
+ name='issue',
+ field=models.PositiveIntegerField(null=True),
+ ),
+ migrations.AlterField(
+ model_name='newslettermailing',
+ name='newsletter',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='lttr.Newsletter'),
+ ),
+ ]
diff --git a/app/lttr/migrations/0008_auto_20200419_1629.py b/app/lttr/migrations/0008_auto_20200419_1629.py
new file mode 100644
index 0000000..5e8bd42
--- /dev/null
+++ b/app/lttr/migrations/0008_auto_20200419_1629.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.2 on 2020-04-19 16:29
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lttr', '0007_auto_20200419_1627'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='newslettermailing',
+ name='issue',
+ field=models.PositiveIntegerField(),
+ ),
+ ]
diff --git a/app/lttr/migrations/0009_newslettermailing_subtitle.py b/app/lttr/migrations/0009_newslettermailing_subtitle.py
new file mode 100644
index 0000000..411364f
--- /dev/null
+++ b/app/lttr/migrations/0009_newslettermailing_subtitle.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.1.2 on 2020-04-19 21:15
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('lttr', '0008_auto_20200419_1629'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='newslettermailing',
+ name='subtitle',
+ field=models.CharField(blank=True, max_length=250, null=True),
+ ),
+ ]
diff --git a/app/lttr/migrations/0010_newslettermailing_books.py b/app/lttr/migrations/0010_newslettermailing_books.py
new file mode 100644
index 0000000..1b63a93
--- /dev/null
+++ b/app/lttr/migrations/0010_newslettermailing_books.py
@@ -0,0 +1,19 @@
+# Generated by Django 2.1.2 on 2020-04-20 13:59
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('books', '0011_auto_20200205_1617'),
+ ('lttr', '0009_newslettermailing_subtitle'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='newslettermailing',
+ name='books',
+ field=models.ManyToManyField(blank=True, related_name='mailing_books', to='books.Book'),
+ ),
+ ]