Update message attachment migration
This commit is contained in:
parent
a034045935
commit
115b79e4ac
8 changed files with 97 additions and 90 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue