Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/prisma/generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def generate(self, data: PythonData) -> None:
# package so we can use it to instantiate the query engine
packaged_schema = rootdir / 'schema.prisma'
if not is_same_path(data.schema_path, packaged_schema):
packaged_schema.write_text(data.datamodel)
packaged_schema.write_text(data.datamodel, encoding='utf-8')

params = data.to_params()

Expand Down