diff --git a/db/migrations/0229__add_oauth_user_data_table.sql b/db/migrations/0229__add_oauth_user_data_table.sql new file mode 100644 index 000000000..ea2db4ef9 --- /dev/null +++ b/db/migrations/0229__add_oauth_user_data_table.sql @@ -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) +); \ No newline at end of file diff --git a/src/routes/api/app_info.ts b/src/routes/api/app_info.ts index fb2f84aec..ece825a30 100644 --- a/src/routes/api/app_info.ts +++ b/src/routes/api/app_info.ts @@ -1,5 +1,3 @@ -"use strict"; - import appInfo from "../../services/app_info.js"; /** diff --git a/src/services/app_info.ts b/src/services/app_info.ts index 72b1f0fca..bd1436912 100644 --- a/src/services/app_info.ts +++ b/src/services/app_info.ts @@ -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";