From 92565ca1aa1f9aa64ff14706bcc016a9c106d040 Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Sun, 7 Jan 2024 16:11:06 +0900 Subject: [PATCH] fix docs --- docs/pages/database/mysql.md | 2 +- docs/pages/database/postgresql.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/pages/database/mysql.md b/docs/pages/database/mysql.md index 099a7416c..9bbdb7849 100644 --- a/docs/pages/database/mysql.md +++ b/docs/pages/database/mysql.md @@ -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) ) diff --git a/docs/pages/database/postgresql.md b/docs/pages/database/postgresql.md index 7054bb8ff..342d19be4 100644 --- a/docs/pages/database/postgresql.md +++ b/docs/pages/database/postgresql.md @@ -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) ) ``` @@ -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(); @@ -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();