Migrate sourceDevice from TEXT to INTEGER

This commit is contained in:
Fedor Indutny
2021-08-02 14:55:31 -07:00
committed by GitHub
parent eccd682920
commit 6637fc2b95
4 changed files with 43 additions and 6 deletions

View File

@@ -195,7 +195,7 @@ export type UnprocessedType = {
export type UnprocessedUpdateType = {
source?: string;
sourceUuid?: string;
sourceDevice?: string;
sourceDevice?: number;
serverGuid?: string;
serverTimestamp?: number;
decrypted?: string;
@@ -459,7 +459,7 @@ export type ServerInterface = DataInterface & {
getMessageBySender: (options: {
source: string;
sourceUuid: string;
sourceDevice: string;
sourceDevice: number;
sent_at: number;
}) => Promise<Array<MessageType>>;
getMessagesBySentAt: (sentAt: number) => Promise<Array<MessageType>>;
@@ -548,7 +548,7 @@ export type ClientInterface = DataInterface & {
data: {
source: string;
sourceUuid: string;
sourceDevice: string;
sourceDevice: number;
sent_at: number;
},
options: { Message: typeof MessageModel }