mirror of https://gitlab.com/litecord/litecord.git
add messages.flags column
This commit is contained in:
parent
a8f226e2c2
commit
63ab8ea064
|
|
@ -876,7 +876,7 @@ class Storage:
|
|||
row = await self.fetchrow_with_json("""
|
||||
SELECT id::text, channel_id::text, author_id, content,
|
||||
created_at AS timestamp, edited_at AS edited_timestamp,
|
||||
tts, mention_everyone, nonce, message_type, embeds
|
||||
tts, mention_everyone, nonce, message_type, embeds, flags
|
||||
FROM messages
|
||||
WHERE id = $1
|
||||
""", message_id)
|
||||
|
|
@ -961,6 +961,9 @@ class Storage:
|
|||
if guild_id:
|
||||
res['guild_id'] = str(guild_id)
|
||||
|
||||
if res['flags'] is None:
|
||||
res.pop('flags')
|
||||
|
||||
return res
|
||||
|
||||
async def get_invite(self, invite_code: str) -> Optional[Dict]:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE messages
|
||||
ADD COLUMN flags bigint DEFAULT NULL;
|
||||
Loading…
Reference in New Issue