chore: deprecate user setting legacy api

This commit is contained in:
Steven
2023-12-08 22:41:47 +08:00
parent b2d898dc15
commit 7fc7b19d64
16 changed files with 54 additions and 494 deletions

View File

@@ -0,0 +1,12 @@
-- webhook
CREATE TABLE webhook (
id INTEGER PRIMARY KEY AUTOINCREMENT,
created_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
updated_ts BIGINT NOT NULL DEFAULT (strftime('%s', 'now')),
row_status TEXT NOT NULL CHECK (row_status IN ('NORMAL', 'ARCHIVED')) DEFAULT 'NORMAL',
creator_id INTEGER NOT NULL,
name TEXT NOT NULL,
url TEXT NOT NULL
);
CREATE INDEX idx_webhook_creator_id ON webhook (creator_id);

View File

@@ -0,0 +1,4 @@
UPDATE user_setting SET key = 'USER_SETTING_LOCALE' WHERE key = 'locale';
UPDATE user_setting SET key = 'USER_SETTING_APPEARANCE' WHERE key = 'appearance';
UPDATE user_setting SET key = 'USER_SETTING_MEMO_VISIBILITY' WHERE key = 'memo-visibility';
UPDATE user_setting SET key = 'USER_SETTING_TELEGRAM_USER_ID' WHERE key = 'telegram-user-id';