From 54ec5e2ae077cdea4225818d44a1700f922d78fa Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Wed, 15 Nov 2023 19:54:16 +1100 Subject: [PATCH] Fix migrations properly (#3116) * Revert "fix migrations and linting" This reverts commit 53e410627fe2147b3917d91d0eaa40783a242159. * really fix migrations --- .../migrations/0187_merge_20231115_0846.py | 13 ++++++ ...88_alter_notification_notification_type.py | 44 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 bookwyrm/migrations/0187_merge_20231115_0846.py create mode 100644 bookwyrm/migrations/0188_alter_notification_notification_type.py diff --git a/bookwyrm/migrations/0187_merge_20231115_0846.py b/bookwyrm/migrations/0187_merge_20231115_0846.py new file mode 100644 index 000000000..2adb1f4ed --- /dev/null +++ b/bookwyrm/migrations/0187_merge_20231115_0846.py @@ -0,0 +1,13 @@ +# Generated by Django 3.2.23 on 2023-11-15 08:46 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("bookwyrm", "0184_auto_20231106_0421"), + ("bookwyrm", "0186_alter_notification_notification_type"), + ] + + operations = [] diff --git a/bookwyrm/migrations/0188_alter_notification_notification_type.py b/bookwyrm/migrations/0188_alter_notification_notification_type.py new file mode 100644 index 000000000..e62b56030 --- /dev/null +++ b/bookwyrm/migrations/0188_alter_notification_notification_type.py @@ -0,0 +1,44 @@ +# Generated by Django 3.2.23 on 2023-11-15 08:48 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bookwyrm", "0187_merge_20231115_0846"), + ] + + operations = [ + migrations.AlterField( + model_name="notification", + name="notification_type", + field=models.CharField( + choices=[ + ("FAVORITE", "Favorite"), + ("BOOST", "Boost"), + ("REPLY", "Reply"), + ("MENTION", "Mention"), + ("TAG", "Tag"), + ("FOLLOW", "Follow"), + ("FOLLOW_REQUEST", "Follow Request"), + ("IMPORT", "Import"), + ("USER_IMPORT", "User Import"), + ("USER_EXPORT", "User Export"), + ("ADD", "Add"), + ("REPORT", "Report"), + ("LINK_DOMAIN", "Link Domain"), + ("INVITE", "Invite"), + ("ACCEPT", "Accept"), + ("JOIN", "Join"), + ("LEAVE", "Leave"), + ("REMOVE", "Remove"), + ("GROUP_PRIVACY", "Group Privacy"), + ("GROUP_NAME", "Group Name"), + ("GROUP_DESCRIPTION", "Group Description"), + ("MOVE", "Move"), + ], + max_length=255, + ), + ), + ]