mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 10:32:27 +08:00
feat: 🎸 upgrade db version
This commit is contained in:
parent
77f62b94cc
commit
02c4a269be
14
db/migrations/0229__add_oauth_user_data_table.sql
Normal file
14
db/migrations/0229__add_oauth_user_data_table.sql
Normal 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)
|
||||||
|
);
|
@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import appInfo from "../../services/app_info.js";
|
import appInfo from "../../services/app_info.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import build from "./build.js";
|
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 = 228;
|
const APP_DB_VERSION = 229;
|
||||||
const SYNC_VERSION = 34;
|
const SYNC_VERSION = 34;
|
||||||
const CLIPPER_PROTOCOL_VERSION = "1.0";
|
const CLIPPER_PROTOCOL_VERSION = "1.0";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user