Skip to content

Commit

Permalink
docs: update planetscale package (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodriguegratian authored Sep 16, 2023
1 parent ae595fb commit 8df680f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions documentation/content/guidebook/drizzle-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const auth = lucia({
});
```

### `@planetscale/serverless`
### `@planetscale/database`

Remove all `references()` from the schema since Planetscale does not support foreign keys from `key` and `session`. For example:

Expand All @@ -102,10 +102,10 @@ export const key = mysqlTable("user_key", {
});
```

Install `@planetscale/serverless` and follow the [adapter documentation](/database-adapters/planetscale-serverless) to setup your database.
Install `@planetscale/database` and follow the [adapter documentation](/database-adapters/planetscale-serverless) to setup your database.

```
npm install @planetscale/serverless
npm install @planetscale/database
```

Create a new connection and use it to initialize both Drizzle and Lucia.
Expand Down

0 comments on commit 8df680f

Please sign in to comment.