diff --git a/osf/migrations/0036_remove_duplicate_notification_subscriptions_v2.py b/osf/migrations/0036_remove_duplicate_notification_subscriptions_v2.py new file mode 100644 index 00000000000..d4f308fedd8 --- /dev/null +++ b/osf/migrations/0036_remove_duplicate_notification_subscriptions_v2.py @@ -0,0 +1,27 @@ +# Generated by Django 4.2.17 on 2026-01-27 21:03 + +from django.db import migrations + +from django.core.management import call_command + + +def run_deduplication_command(apps, schema_editor): + call_command('remove_duplicate_notification_subscriptions_v2') + + +def reverse(apps, schema_editor): + """ + This is a no-op since we can't restore deleted records. + """ + + +class Migration(migrations.Migration): + + dependencies = [ + ('contenttypes', '0002_remove_content_type_name'), + ('osf', '0035_merge_20251215_1451'), + ] + + operations = [ + migrations.RunPython(run_deduplication_command, reverse), + ] diff --git a/osf/migrations/0036_notification_refactor_post_release.py b/osf/migrations/0037_notification_refactor_post_release.py similarity index 71% rename from osf/migrations/0036_notification_refactor_post_release.py rename to osf/migrations/0037_notification_refactor_post_release.py index 9a8ccb779f5..67ffafb600c 100644 --- a/osf/migrations/0036_notification_refactor_post_release.py +++ b/osf/migrations/0037_notification_refactor_post_release.py @@ -1,30 +1,16 @@ -# Generated by Django 4.2.17 on 2026-01-27 21:03 +# Generated by Django 4.2.17 on 2026-03-03 11:29 from django.db import migrations, models import osf.utils.fields -from django.core.management import call_command - - -def run_deduplication_command(apps, schema_editor): - call_command('remove_duplicate_notification_subscriptions_v2') - - -def reverse(apps, schema_editor): - """ - This is a no-op since we can't restore deleted records. - """ - class Migration(migrations.Migration): dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('osf', '0035_merge_20251215_1451'), + ('osf', '0036_remove_duplicate_notification_subscriptions_v2'), ] operations = [ - migrations.RunPython(run_deduplication_command, reverse), migrations.RemoveField( model_name='notification', name='seen',