2025-06-02 17:16:37 -04:00
|
|
|
// Copyright 2025 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2025-09-16 17:39:03 -07:00
|
|
|
import type { WritableDB } from '../Interface.js';
|
2025-06-02 17:16:37 -04:00
|
|
|
|
2025-08-06 10:32:08 -07:00
|
|
|
export default function updateToSchemaVersion1370(db: WritableDB): void {
|
|
|
|
db.exec(`
|
|
|
|
DROP INDEX IF EXISTS message_attachments_messageId;
|
|
|
|
DROP INDEX IF EXISTS message_attachments_plaintextHash;
|
|
|
|
DROP INDEX IF EXISTS message_attachments_path;
|
|
|
|
DROP INDEX IF EXISTS message_attachments_all_thumbnailPath;
|
|
|
|
DROP INDEX IF EXISTS message_attachments_all_screenshotPath;
|
|
|
|
DROP INDEX IF EXISTS message_attachments_all_backupThumbnailPath;
|
|
|
|
`);
|
2025-06-02 17:16:37 -04:00
|
|
|
}
|