From b62b39a9ea1c1dcc1c2b3546fbd0a6bb548593d0 Mon Sep 17 00:00:00 2001 From: Robert Craigie Date: Tue, 27 Aug 2024 19:15:41 +0100 Subject: [PATCH 1/3] feat(prisma): upgrade to v5.18.0 (#996) --- README.md | 2 +- docs/index.md | 2 +- docs/reference/binaries.md | 2 +- docs/reference/config.md | 4 ++-- src/prisma/_config.py | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0a81cbeb9..5b1c85571 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Chat on Discord - Supported Prisma version is 5.17.0 + Supported Prisma version is 5.19.0 Code style: ruff diff --git a/docs/index.md b/docs/index.md index c5f139140..194448694 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,7 +8,7 @@ Chat on Discord - Supported Prisma version is 5.17.0 + Supported Prisma version is 5.19.0 Code style: ruff diff --git a/docs/reference/binaries.md b/docs/reference/binaries.md index 73e7d6ebc..c50311fda 100644 --- a/docs/reference/binaries.md +++ b/docs/reference/binaries.md @@ -9,7 +9,7 @@ Prisma Client Python _should_ automatically download the correct binaries for yo - Clone the prisma-engines repository at the current version that the python client supports: ``` -git clone https://github.com/prisma/prisma-engines --branch=5.17.0 +git clone https://github.com/prisma/prisma-engines --branch=5.19.0 ``` - Build the binaries following the steps found [here](https://github.com/prisma/prisma-engines#building-prisma-engines) diff --git a/docs/reference/config.md b/docs/reference/config.md index dc850d1c7..5bf079224 100644 --- a/docs/reference/config.md +++ b/docs/reference/config.md @@ -220,7 +220,7 @@ This option controls the version of Prisma to use. It should be noted that this | Option | Environment Variable | Default | | ---------------- | --------------------- | -------- | -| `prisma_version` | `PRISMA_VERSION` | `5.17.0` | +| `prisma_version` | `PRISMA_VERSION` | `5.19.0` | ### Expected Engine Version @@ -228,7 +228,7 @@ This is an internal option that is here as a safeguard for the `prisma_version` | Option | Environment Variable | Default | | ------------------------- | -------------------------------- | ------------------------------------------ | -| `expected_engine_version` | `PRISMA_EXPECTED_ENGINE_VERSION` | `393aa359c9ad4a4bb28630fb5613f9c281cde053` | +| `expected_engine_version` | `PRISMA_EXPECTED_ENGINE_VERSION` | `5fe21811a6ba0b952a3bc71400666511fe3b902f` | ### Binary Platform diff --git a/src/prisma/_config.py b/src/prisma/_config.py index 6ef2d1a8e..d3ca51458 100644 --- a/src/prisma/_config.py +++ b/src/prisma/_config.py @@ -27,13 +27,13 @@ class DefaultConfig(BaseSettings): # doesn't change then the CLI is incorrectly cached prisma_version: str = Field( env='PRISMA_VERSION', - default='5.17.0', + default='5.19.0', ) # Engine binary versions can be found under https://github.com/prisma/prisma-engine/commits/main expected_engine_version: str = Field( env='PRISMA_EXPECTED_ENGINE_VERSION', - default='393aa359c9ad4a4bb28630fb5613f9c281cde053', + default='5fe21811a6ba0b952a3bc71400666511fe3b902f', ) # Home directory, used to build the `binary_cache_dir` option by default, useful in multi-user From 061342417bc42f79b4ecabcd058dc2c340f602f1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 14:27:34 +0100 Subject: [PATCH 2/3] chore(deps): update dependency ruff to v0.6.3 (#1015) --- pipelines/requirements/deps/ruff.txt | 2 +- tests/test_generation/test_prisma_cleanup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/requirements/deps/ruff.txt b/pipelines/requirements/deps/ruff.txt index 3af089ab0..bf1318e80 100644 --- a/pipelines/requirements/deps/ruff.txt +++ b/pipelines/requirements/deps/ruff.txt @@ -1 +1 @@ -ruff==0.5.7 +ruff==0.6.3 diff --git a/tests/test_generation/test_prisma_cleanup.py b/tests/test_generation/test_prisma_cleanup.py index 6ce27f3ce..55ba94004 100644 --- a/tests/test_generation/test_prisma_cleanup.py +++ b/tests/test_generation/test_prisma_cleanup.py @@ -2,8 +2,8 @@ import subprocess import pytest -from prisma_cleanup import cleanup +from prisma_cleanup import cleanup from prisma.generator import BASE_PACKAGE_DIR from prisma.generator.utils import copy_tree From 05808fc6fbe6fccd3465a92b8bae81af80caa8aa Mon Sep 17 00:00:00 2001 From: AuroraTea <1352685369@qq.com> Date: Fri, 6 Sep 2024 21:59:01 +0800 Subject: [PATCH 3/3] docs: update the link in advanced.md (#1027) ## Change Summary There is a link to the Prisma Client Go documentation, but it no longer works because the path to the other document has changed. ## Agreement By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice. --- docs/getting_started/advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting_started/advanced.md b/docs/getting_started/advanced.md index aea1fa3c0..240144003 100644 --- a/docs/getting_started/advanced.md +++ b/docs/getting_started/advanced.md @@ -1,5 +1,5 @@ !!! note - Adapted from the Prisma Client Go [documentation](https://github.com/prisma/prisma-client-go/blob/master/docs/advanced.md) + Adapted from the Prisma Client Go [documentation](https://github.com/steebchen/prisma-client-go/blob/main/docs/pages/docs/getting-started/advanced.md) In the [quickstart](quickstart.md), we have created a simple post model and ran a few queries. However, Prisma and the Python client are designed to work with relations between models.