mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 04:51:11 +00:00
Recalculate all book search vectors after fixing the author trigger
This commit is contained in:
parent
2cf7ed477d
commit
6a87713f9f
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||||
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue