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
|
@classmethod
|
||||||
def from_file(cls, file_path: str) -> "AsyncMigration":
|
def from_file(cls, file_path: str) -> "AsyncMigration":
|
||||||
"""Create migration from SQL file."""
|
"""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()
|
raw_content = file.read()
|
||||||
# Clean up SQL content
|
# Clean up SQL content
|
||||||
lines = []
|
lines = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue