Small refactor in messaging.
[wolnelektury.git] / src / messaging / migrations / 0005_auto_20200129_1309.py
diff --git a/src/messaging/migrations/0005_auto_20200129_1309.py b/src/messaging/migrations/0005_auto_20200129_1309.py
new file mode 100644 (file)
index 0000000..c1020f8
--- /dev/null
@@ -0,0 +1,33 @@
+# Generated by Django 2.2.9 on 2020-01-29 12:09
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('messaging', '0004_auto_20200129_1035'),
+    ]
+
+    operations = [
+        migrations.RemoveField(
+            model_name='emailsent',
+            name='email',
+        ),
+        migrations.RemoveField(
+            model_name='emailsent',
+            name='hash_value',
+        ),
+        migrations.AddField(
+            model_name='emailsent',
+            name='contact',
+            field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='messaging.Contact'),
+            preserve_default=False,
+        ),
+        migrations.AlterField(
+            model_name='contact',
+            name='level',
+            field=models.PositiveSmallIntegerField(choices=[(10, 'Cold'), (20, 'Would-be donor'), (30, 'One-time donor'), (40, 'Recurring donor'), (50, 'Opt out')]),
+        ),
+    ]