feat: 🎸 upgrade db version

This commit is contained in:
Jin 2025-03-29 01:44:25 +01:00
parent 77f62b94cc
commit 02c4a269be
3 changed files with 15 additions and 5 deletions

View File

@ -0,0 +1,14 @@
-- Add the oauth user data table
CREATE TABLE IF NOT EXISTS "user_data"
(
tmpID INT,
username TEXT,
email TEXT,
userIDEncryptedDataKey TEXT,
userIDVerificationHash TEXT,
salt TEXT,
derivedKey TEXT,
isSetup TEXT DEFAULT "false",
UNIQUE (tmpID),
PRIMARY KEY (tmpID)
);

View File

@ -1,5 +1,3 @@
"use strict";
import appInfo from "../../services/app_info.js";
/**

View File

@ -1,11 +1,9 @@
"use strict";
import path from "path";
import build from "./build.js";
import packageJson from "../../package.json" with { type: "json" };
import dataDir from "./data_dir.js";
const APP_DB_VERSION = 228;
const APP_DB_VERSION = 229;
const SYNC_VERSION = 34;
const CLIPPER_PROTOCOL_VERSION = "1.0";