mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 12:00:00 +00:00
fix: add UTF-8 encoding for async migrations file reading (#279)
Add UTF-8 encoding when opening migration files.
This commit is contained in:
parent
45a99831a9
commit
55b8e6380c
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ class AsyncMigration:
|
|||
@classmethod
|
||||
def from_file(cls, file_path: str) -> "AsyncMigration":
|
||||
"""Create migration from SQL file."""
|
||||
with open(file_path, "r") as file:
|
||||
with open(file_path, "r", encoding="utf-8") as file:
|
||||
raw_content = file.read()
|
||||
# Clean up SQL content
|
||||
lines = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue