Fix for broken migrations on sqlite-utils 3.35, refs #162

This commit is contained in:
Simon Willison 2023-08-19 13:09:41 -07:00
parent d31d97e06f
commit c4dbb62e68

View file

@ -129,6 +129,7 @@ def m007_finish_logs_table(db):
db["log"].transform(
drop={"debug"},
rename={"timestamp_utc": "datetime_utc"},
drop_foreign_keys=("chat_id",),
)
with db.conn:
db.execute("alter table log rename to logs")