mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: deprecate user setting legacy api
This commit is contained in:
12
store/db/sqlite/migration/prod/0.18/00__webhook.sql
Normal file
12
store/db/sqlite/migration/prod/0.18/00__webhook.sql
Normal 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);
|
4
store/db/sqlite/migration/prod/0.18/01__user_setting.sql
Normal file
4
store/db/sqlite/migration/prod/0.18/01__user_setting.sql
Normal 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';
|
Reference in New Issue
Block a user