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,
|
cursor,
|
||||||
"""
|
"""
|
||||||
INSERT INTO bookwyrm_reviewrating(review_ptr_id)
|
INSERT INTO bookwyrm_reviewrating(review_ptr_id)
|
||||||
VALUES %s""",
|
VALUES %s""".encode(),
|
||||||
values,
|
values,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue