Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Jan 7, 2024
1 parent 3a71b8d commit 92565ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/pages/database/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ CREATE TABLE user (
)

CREATE TABLE user_session (
id VARCHAR(255) NOT NULL PRIMARY KEY,
id VARCHAR(255) PRIMARY KEY,
expires_at DATETIME NOT NULL,
user_id VARCHAR(255) NOT NULL REFERENCES user(id)
)
Expand Down
8 changes: 4 additions & 4 deletions docs/pages/database/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ CREATE TABLE auth_user (
)

CREATE TABLE user_session (
id TEXT NOT NULL PRIMARY KEY,
id TEXT PRIMARY KEY,
expires_at TIMESTAMPTZ NOT NULL,
user_id TEXT NOT NULL REFERENCES user(id)
user_id TEXT NOT NULL REFERENCES auth_user(id)
)
```

Expand All @@ -35,7 +35,7 @@ CREATE TABLE user_session (

```ts
import { Lucia } from "lucia";
import { NodePostgresAdapter } from "@lucia-auth/adapter-sqlite";
import { NodePostgresAdapter } from "@lucia-auth/adapter-postgresql";
import pg from "pg";

const pool = new pg.Pool();
Expand All @@ -52,7 +52,7 @@ const adapter = new NodePostgresAdapter(pool, {

```ts
import { Lucia } from "lucia";
import { PostgresJsAdapter } from "@lucia-auth/adapter-sqlite";
import { PostgresJsAdapter } from "@lucia-auth/adapter-postgresql";
import postgres from "postgres";

const sql = postgres();
Expand Down

0 comments on commit 92565ca

Please sign in to comment.