aboutsummaryrefslogtreecommitdiffstats
path: root/api/migrations
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-11-18 21:13:47 +0100
committerGravatar Johannes Christ <[email protected]>2018-11-18 21:13:47 +0100
commit9ac6157ba2b9f86598eede69df7b67fa320f95b2 (patch)
tree0ce8f8ff3a372b65bbe29a72af61e51bd2731806 /api/migrations
parentAdd the abstract `Message` model. (diff)
Add the `MessageDeletionContext` model.
Diffstat (limited to 'api/migrations')
-rw-r--r--api/migrations/0018_messagedeletioncontext.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/api/migrations/0018_messagedeletioncontext.py b/api/migrations/0018_messagedeletioncontext.py
new file mode 100644
index 00000000..39a4fb87
--- /dev/null
+++ b/api/migrations/0018_messagedeletioncontext.py
@@ -0,0 +1,24 @@
+# Generated by Django 2.1.1 on 2018-11-18 20:12
+
+import api.models
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('api', '0017_auto_20181029_1921'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='MessageDeletionContext',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('creation', models.DateTimeField(help_text='When this deletion took place.')),
+ ('actor', models.ForeignKey(help_text='The original actor causing this deletion. Could be the author of a manual clean command invocation, the bot when executing automatic actions, or nothing to indicate that the bulk deletion was not issued by us.', null=True, on_delete=django.db.models.deletion.CASCADE, to='api.Member')),
+ ],
+ bases=(api.models.ModelReprMixin, models.Model),
+ ),
+ ]