Update message attachment migration

This commit is contained in:
trevor-signal 2025-06-02 17:16:37 -04:00 committed by GitHub
commit 115b79e4ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 97 additions and 90 deletions

View file

@ -129,10 +129,9 @@ export type MessageType = MessageAttributesType;
// - Make sure the name matches the one in `MessageAttributeTypes`
// - Update `hydrateMessage`
//
export const MESSAGE_COLUMNS = [
const MESSAGE_PRIMARY_KEY_COLUMNS = ['id'] as const;
export const MESSAGE_NON_PRIMARY_KEY_COLUMNS = [
'json',
'id',
'body',
'conversationId',
'expirationStartTimestamp',
@ -161,6 +160,11 @@ export const MESSAGE_COLUMNS = [
'unidentifiedDeliveryReceived',
] as const;
export const MESSAGE_COLUMNS = [
...MESSAGE_PRIMARY_KEY_COLUMNS,
...MESSAGE_NON_PRIMARY_KEY_COLUMNS,
] as const;
export type MessageTypeUnhydrated = {
json: string;