Encode SQL statement as bytes in 0046_reviewrating database migration
An attempt to avoid a psycopg2 error about 'connection.encoding' not existing.
This commit is contained in:
parent
db34a9575b
commit
4b433e285d
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def convert_review_rating(app_registry, schema_editor):
|
|||
cursor,
|
||||
"""
|
||||
INSERT INTO bookwyrm_reviewrating(review_ptr_id)
|
||||
VALUES %s""",
|
||||
VALUES %s""".encode(),
|
||||
values,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue