From a394c02477db7ac6b7b02c4e63a3fa262d0b7759 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Wed, 7 Nov 2018 19:15:07 -0300 Subject: [PATCH] schemas: add USER_SETTINGS.status --- litecord/schemas.py | 2 ++ schema.sql | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/litecord/schemas.py b/litecord/schemas.py index 710ccd0..e74dda0 100644 --- a/litecord/schemas.py +++ b/litecord/schemas.py @@ -496,6 +496,8 @@ USER_SETTINGS = { 'show_current_game': {'type': 'boolean', 'required': False}, 'timezone_offset': {'type': 'number', 'required': False}, + + 'status': {'type': 'status_external', 'required': False} } RELATIONSHIP = { diff --git a/schema.sql b/schema.sql index 11b2caf..2d3d5c6 100644 --- a/schema.sql +++ b/schema.sql @@ -134,6 +134,10 @@ CREATE TABLE IF NOT EXISTS user_settings ( -- appearance message_display_compact bool DEFAULT false, + + -- for now we store status but don't + -- actively use it, since the official client + -- sends its own presence on IDENTIFY status text DEFAULT 'online' NOT NULL, theme text DEFAULT 'dark' NOT NULL, developer_mode bool DEFAULT true,