@remit/drizzle-pg-schema 0.0.45 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema.js +2 -2
- package/package.json +1 -1
- package/schema.ts +2 -2
package/dist/schema.js
CHANGED
|
@@ -283,8 +283,8 @@ export const threadMessages = pgTable("thread_message", {
|
|
|
283
283
|
index("thread_message_by_mailbox_id").on(table.accountConfigId, table.mailboxId, table.sentDate),
|
|
284
284
|
index("thread_message_by_date").on(table.accountConfigId, table.sentDate),
|
|
285
285
|
index("thread_message_by_unread").on(table.accountConfigId, table.isRead, table.sentDate),
|
|
286
|
-
index("thread_message_by_message_id").on(table.messageId),
|
|
287
|
-
index("thread_message_by_thread_id").on(table.threadId, table.sentDate),
|
|
286
|
+
index("thread_message_by_message_id").on(table.messageId, table.accountConfigId),
|
|
287
|
+
index("thread_message_by_thread_id").on(table.accountConfigId, table.threadId, table.sentDate, table.threadMessageId),
|
|
288
288
|
index("thread_message_primary").on(table.accountConfigId, table.threadMessageId),
|
|
289
289
|
index("tm_by_mailbox_category_date").on(table.accountConfigId, table.mailboxId, table.category, table.isDeleted, table.sentDate),
|
|
290
290
|
]);
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -347,8 +347,8 @@ export const threadMessages = pgTable(
|
|
|
347
347
|
index("thread_message_by_mailbox_id").on(table.accountConfigId, table.mailboxId, table.sentDate),
|
|
348
348
|
index("thread_message_by_date").on(table.accountConfigId, table.sentDate),
|
|
349
349
|
index("thread_message_by_unread").on(table.accountConfigId, table.isRead, table.sentDate),
|
|
350
|
-
index("thread_message_by_message_id").on(table.messageId),
|
|
351
|
-
index("thread_message_by_thread_id").on(table.threadId, table.sentDate),
|
|
350
|
+
index("thread_message_by_message_id").on(table.messageId, table.accountConfigId),
|
|
351
|
+
index("thread_message_by_thread_id").on(table.accountConfigId, table.threadId, table.sentDate, table.threadMessageId),
|
|
352
352
|
index("thread_message_primary").on(table.accountConfigId, table.threadMessageId),
|
|
353
353
|
index("tm_by_mailbox_category_date").on(table.accountConfigId, table.mailboxId, table.category, table.isDeleted, table.sentDate),
|
|
354
354
|
],
|