Recalculate all book search vectors after fixing the author trigger

This commit is contained in:
Bart Schuurmans 2024-03-20 11:45:12 +01:00
parent 2cf7ed477d
commit 6a87713f9f

View file

@ -67,4 +67,10 @@ class Migration(migrations.Migration):
""", """,
reverse_sql=author_search_vector_trigger.sql, reverse_sql=author_search_vector_trigger.sql,
), ),
migrations.RunSQL(
# Recalculate book search vector for any missed author name changes
# due to bug in JOIN in the old trigger.
sql="UPDATE bookwyrm_book SET search_vector = NULL;",
reverse_sql=migrations.RunSQL.noop,
),
] ]