Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 02c4a26

Browse files
committed
feat: 🎸 upgrade db version
1 parent 77f62b9 commit 02c4a26

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- Add the oauth user data table
2+
CREATE TABLE IF NOT EXISTS "user_data"
3+
(
4+
tmpID INT,
5+
username TEXT,
6+
email TEXT,
7+
userIDEncryptedDataKey TEXT,
8+
userIDVerificationHash TEXT,
9+
salt TEXT,
10+
derivedKey TEXT,
11+
isSetup TEXT DEFAULT "false",
12+
UNIQUE (tmpID),
13+
PRIMARY KEY (tmpID)
14+
);

src/routes/api/app_info.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"use strict";
2-
31
import appInfo from "../../services/app_info.js";
42

53
/**

src/services/app_info.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
"use strict";
2-
31
import path from "path";
42
import build from "./build.js";
53
import packageJson from "../../package.json" with { type: "json" };
64
import dataDir from "./data_dir.js";
75

8-
const APP_DB_VERSION = 228;
6+
const APP_DB_VERSION = 229;
97
const SYNC_VERSION = 34;
108
const CLIPPER_PROTOCOL_VERSION = "1.0";
119

0 commit comments

Comments
 (0)