Skip to content

Commit

Permalink
feat(prisma): upgrade to v5.4.2 (#830)
Browse files Browse the repository at this point in the history
## Change Summary

Please summarise the changes this pull request is making here.

## Checklist

- [ ] Unit tests for the changes exist
- [ ] Tests pass without significant drop in coverage
- [ ] Documentation reflects changes where applicable
- [ ] Test snapshots have been
[updated](https://prisma-client-py.readthedocs.io/en/latest/contributing/contributing/#snapshot-tests)
if applicable

## Agreement

By submitting this pull request, I confirm that you can use, modify,
copy and redistribute this contribution, under the terms of your choice.
  • Loading branch information
RobertCraigie authored Oct 22, 2023
1 parent d963f41 commit a2ec5f8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<img src="https://img.shields.io/discord/933860922039099444?color=blue&label=chat&logo=discord" alt="Chat on Discord">
</a>
<a href="https://prisma.io">
<img src="https://img.shields.io/static/v1?label=prisma&message=5.4.0&color=blue&logo=prisma" alt="Supported Prisma version is 5.4.0">
<img src="https://img.shields.io/static/v1?label=prisma&message=5.4.2&color=blue&logo=prisma" alt="Supported Prisma version is 5.4.2">
</a>
<a href="https://github.com/grantjenks/blue">
<img src="https://camo.githubusercontent.com/dbdbcf26db37abfa1f2ab7e6c28c8b3a199f2dad98e4ef53a50e9c45c7e4ace8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d626c75652d626c75652e737667" alt="Code style: blue">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<img src="https://img.shields.io/discord/933860922039099444?color=blue&label=chat&logo=discord" alt="Chat on Discord">
</a>
<a href="https://prisma.io">
<img src="https://img.shields.io/static/v1?label=prisma&message=5.4.0&color=blue&logo=prisma" alt="Supported Prisma version is 5.4.0">
<img src="https://img.shields.io/static/v1?label=prisma&message=5.4.2&color=blue&logo=prisma" alt="Supported Prisma version is 5.4.2">
</a>
<a href="https://github.com/grantjenks/blue">
<img src="https://camo.githubusercontent.com/dbdbcf26db37abfa1f2ab7e6c28c8b3a199f2dad98e4ef53a50e9c45c7e4ace8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d626c75652d626c75652e737667" alt="Code style: blue">
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/binaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0
git clone https://github.com/prisma/prisma-engines --branch=5.4.2
```

- Build the binaries following the steps found [here](https://github.com/prisma/prisma-engines#building-prisma-engines)
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,15 @@ This option controls the version of Prisma to use. It should be noted that this

| Option | Environment Variable | Default |
| ---------------- | --------------------- | -------- |
| `prisma_version` | `PRISMA_VERSION` | `5.4.0` |
| `prisma_version` | `PRISMA_VERSION` | `5.4.2` |

### Expected Engine Version

This is an internal option that is here as a safeguard for the `prisma_version` option. If you modify the `prisma_version` option then you must also update this option to use the corresponding engine version. You can find a list of engine versions [here](https://github.com/prisma/prisma-engines).

| Option | Environment Variable | Default |
| ------------------------- | -------------------------------- | ------------------------------------------ |
| `expected_engine_version` | `PRISMA_EXPECTED_ENGINE_VERSION` | `a5596b96668f0f4b397761ce0956db54e17e48c4` |
| `expected_engine_version` | `PRISMA_EXPECTED_ENGINE_VERSION` | `ac9d7041ed77bcc8a8dbd2ab6616b39013829574` |


### Binary Platform
Expand Down
4 changes: 2 additions & 2 deletions src/prisma/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ class DefaultConfig(BaseSettings):
# doesn't change then the CLI is incorrectly cached
prisma_version: str = Field(
env='PRISMA_VERSION',
default='5.4.0',
default='5.4.2',
)

# 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='a5596b96668f0f4b397761ce0956db54e17e48c4',
default='ac9d7041ed77bcc8a8dbd2ab6616b39013829574',
)

# Home directory, used to build the `binary_cache_dir` option by default, useful in multi-user
Expand Down

0 comments on commit a2ec5f8

Please sign in to comment.