From 6f9c7f39fbd8382cee500a3844fd82fbec5f0c7f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 1 Nov 2023 16:24:47 -0700 Subject: [PATCH] Adds reverse migration for populate sort title This doesn't impact much, it just allows you to reverse the migration, which you would probably (hopefully) only want ot do in development. --- bookwyrm/migrations/0179_populate_sort_title.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bookwyrm/migrations/0179_populate_sort_title.py b/bookwyrm/migrations/0179_populate_sort_title.py index e238bca1d..a149a68a7 100644 --- a/bookwyrm/migrations/0179_populate_sort_title.py +++ b/bookwyrm/migrations/0179_populate_sort_title.py @@ -45,5 +45,7 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RunPython(populate_sort_title), + migrations.RunPython( + populate_sort_title, reverse_code=migrations.RunPython.noop + ), ]