-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: missing accent id for messages detail, reactions and receipts (…
…WPB-1750) (#2980) * feat: missing accent id for messages detail, reactions and receipts * feat: tests * feat: tests
- Loading branch information
1 parent
eeadc6d
commit 10ce34e
Showing
15 changed files
with
79 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
DROP VIEW IF EXISTS ReceiptDetails; | ||
DROP VIEW IF EXISTS MessageDetailsReactions; | ||
|
||
CREATE VIEW IF NOT EXISTS ReceiptDetails | ||
AS SELECT | ||
Receipt.type, | ||
Receipt.date, | ||
Receipt.message_id AS messageId, | ||
Receipt.conversation_id AS conversationId, | ||
User.qualified_id AS userId, | ||
User.name AS userName, | ||
User.handle AS userHandle, | ||
User.preview_asset_id AS previewAssetId, | ||
User.user_type AS userType, | ||
User.deleted AS isUserDeleted, | ||
User.connection_status AS connectionStatus, | ||
User.user_availability_status AS userAvailabilityStatus, | ||
User.accent_id AS accentId | ||
FROM | ||
Receipt | ||
INNER JOIN User ON User.qualified_id = Receipt.user_id | ||
ORDER BY User.name; | ||
|
||
CREATE VIEW IF NOT EXISTS MessageDetailsReactions | ||
AS SELECT | ||
Reaction.emoji, | ||
Reaction.message_id AS messageId, | ||
Reaction.conversation_id AS conversationId, | ||
User.qualified_id AS userId, | ||
User.name, | ||
User.handle, | ||
User.preview_asset_id AS previewAssetId, | ||
User.user_type AS userType, | ||
User.deleted, | ||
User.connection_status AS connectionStatus, | ||
User.user_availability_status AS userAvailabilityStatus, | ||
User.accent_id AS accentId | ||
FROM | ||
Reaction | ||
INNER JOIN User ON User.qualified_id = Reaction.sender_id | ||
ORDER BY Reaction.emoji; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters