mirror of https://gitlab.com/litecord/litecord.git
schemas: add GUILD_UPDATE.{banner, description}
- storage: add banner and description to get_guild fetch - migration: add 14_add_guild_description.sql
This commit is contained in:
parent
79735eedf8
commit
448b74f91b
|
|
@ -278,8 +278,16 @@ GUILD_UPDATE = {
|
||||||
'required': False
|
'required': False
|
||||||
},
|
},
|
||||||
'region': {'type': 'voice_region', 'required': False, 'nullable': True},
|
'region': {'type': 'voice_region', 'required': False, 'nullable': True},
|
||||||
|
|
||||||
'icon': {'type': 'b64_icon', 'required': False, 'nullable': True},
|
'icon': {'type': 'b64_icon', 'required': False, 'nullable': True},
|
||||||
'splash': {'type': 'b64_icon', 'required': False, 'nullable': True},
|
'splash': {'type': 'b64_icon', 'required': False, 'nullable': True},
|
||||||
|
'banner': {'type': 'b64_icon', 'required': False, 'nullable': True},
|
||||||
|
|
||||||
|
'description': {
|
||||||
|
'type': 'string', 'required': False,
|
||||||
|
'minlength': 1, 'maxlength': 120,
|
||||||
|
'nullable': True
|
||||||
|
},
|
||||||
|
|
||||||
'verification_level': {
|
'verification_level': {
|
||||||
'type': 'verification_level', 'required': False},
|
'type': 'verification_level', 'required': False},
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,8 @@ class Storage:
|
||||||
explicit_content_filter, mfa_level,
|
explicit_content_filter, mfa_level,
|
||||||
embed_enabled, embed_channel_id::text,
|
embed_enabled, embed_channel_id::text,
|
||||||
widget_enabled, widget_channel_id::text,
|
widget_enabled, widget_channel_id::text,
|
||||||
system_channel_id::text, features
|
system_channel_id::text, features,
|
||||||
|
banner, description
|
||||||
FROM guilds
|
FROM guilds
|
||||||
WHERE guilds.id = $1
|
WHERE guilds.id = $1
|
||||||
""", guild_id)
|
""", guild_id)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE guilds ADD COLUMN description text DEFAULT NULL;
|
||||||
|
ALTER TABLE guilds ADD COLUMN banner text DEFAULT NULL;
|
||||||
Loading…
Reference in New Issue