Skip to content

Commit

Permalink
Update upgrading-from-prisma-1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed Oct 21, 2019
1 parent 8dcc69a commit 6deeb91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/upgrading-from-prisma-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ model Post {
}
```

**Note**: The `@unique` attributes on the `id` fields are [redundant](https://github.com/prisma/prisma2/issues/786) as uniqueness is already implied by the `@id` attribute. It also contains another bug where it [doesn't convert `@default` attributes](https://github.com/prisma/prisma2/issues/790), so you need to manually add the `@default(true)` to the `published` field in the Prisma schema.
> **Note**: The `@unique` attributes on the `id` fields are [redundant](https://github.com/prisma/prisma2/issues/786) as uniqueness is already implied by the `@id` attribute. It also contains another bug where it [doesn't convert `@default` attributes](https://github.com/prisma/prisma2/issues/790), so you need to manually add the `@default(true)` to the `published` field in the Prisma schema.
### 2.2. Add the datasource

Expand Down Expand Up @@ -176,7 +176,7 @@ generate:

With the Prisma Framework, this information is now also contained inside the Prisma schema via a `generator` block. Add it to your your Prisma schema like so:

```prisma
```diff
datasource postgresql {
provider = "postgresql"
url = "postgresql://janedoe:janedoe@localhost:5432/mydb?schema=public"
Expand Down Expand Up @@ -428,4 +428,4 @@ Going forward, you won't perform schema migrations using the `prisma deploy` com

## Summary

In this upgrade guide, you learned how to upgrade an ExpressJS-based REST API from Prisma 1 to the Prisma Framework that uses Photon.js and Lift. In the future, we'll cover more fine-grained upgrade scenarios, based on more complicated database schemas as well as for projects that are using GraphQL Nexus and `nexus-prisma`.
In this upgrade guide, you learned how to upgrade an ExpressJS-based REST API from Prisma 1 to the Prisma Framework that uses Photon.js and Lift. In the future, we'll cover more fine-grained upgrade scenarios, based on more complicated database schemas as well as for projects that are using GraphQL Nexus and `nexus-prisma`.

0 comments on commit 6deeb91

Please sign in to comment.