feat(server/session): update database to hold session information

This commit is contained in:
Elian Doran 2025-05-16 23:07:23 +03:00
parent a3a1667351
commit ec39667cba
No known key found for this signature in database
3 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS sessions (
id TEXT PRIMARY KEY,
data TEXT,
expires INTEGER
);

View File

@ -187,3 +187,9 @@ CREATE TABLE IF NOT EXISTS "embedding_providers" (
"dateModified" TEXT NOT NULL, "dateModified" TEXT NOT NULL,
"utcDateModified" TEXT NOT NULL "utcDateModified" TEXT NOT NULL
); );
CREATE TABLE IF NOT EXISTS sessions (
id TEXT PRIMARY KEY,
data TEXT,
expires INTEGER
);

View File

@ -3,7 +3,7 @@ import build from "./build.js";
import packageJson from "../../package.json" with { type: "json" }; import packageJson from "../../package.json" with { type: "json" };
import dataDir from "./data_dir.js"; import dataDir from "./data_dir.js";
const APP_DB_VERSION = 230; const APP_DB_VERSION = 231;
const SYNC_VERSION = 35; const SYNC_VERSION = 35;
const CLIPPER_PROTOCOL_VERSION = "1.0"; const CLIPPER_PROTOCOL_VERSION = "1.0";