mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
17 lines
503 B
TypeScript
17 lines
503 B
TypeScript
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { Database } from '@signalapp/sqlcipher';
|
|
|
|
export default function updateToSchemaVersion79(db: Database): void {
|
|
db.exec(`
|
|
DROP INDEX messages_hasVisualMediaAttachments;
|
|
CREATE INDEX messages_hasVisualMediaAttachments
|
|
ON messages (
|
|
conversationId, isStory, storyId,
|
|
hasVisualMediaAttachments, received_at, sent_at
|
|
)
|
|
WHERE hasVisualMediaAttachments IS 1;
|
|
`);
|
|
}
|