mirror of
https://github.com/zadam/trilium.git
synced 2025-01-04 06:13:36 +08:00
14 lines
453 B
SQL
14 lines
453 B
SQL
CREATE TABLE IF NOT EXISTS "mig_api_tokens"
|
|
(
|
|
apiTokenId TEXT PRIMARY KEY NOT NULL,
|
|
name TEXT NOT NULL,
|
|
token TEXT NOT NULL,
|
|
utcDateCreated TEXT NOT NULL,
|
|
isDeleted INT NOT NULL DEFAULT 0);
|
|
|
|
INSERT INTO mig_api_tokens (apiTokenId, name, token, utcDateCreated, isDeleted)
|
|
SELECT apiTokenId, 'Trilium Sender', token, utcDateCreated, isDeleted FROM api_tokens;
|
|
|
|
DROP TABLE api_tokens;
|
|
|
|
ALTER TABLE mig_api_tokens RENAME TO api_tokens;
|