mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Rename files
This commit is contained in:
23
ts/sql/migrations/74-optimize-convo-open.std.ts
Normal file
23
ts/sql/migrations/74-optimize-convo-open.std.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
export default function updateToSchemaVersion74(db: Database): void {
|
||||
db.exec(
|
||||
`
|
||||
-- Previously: (isUserInitiatedMessage)
|
||||
DROP INDEX message_user_initiated;
|
||||
|
||||
CREATE INDEX message_user_initiated ON messages (conversationId, isUserInitiatedMessage);
|
||||
|
||||
-- Previously: (unread, conversationId)
|
||||
DROP INDEX reactions_unread;
|
||||
|
||||
CREATE INDEX reactions_unread ON reactions (
|
||||
conversationId,
|
||||
unread
|
||||
);
|
||||
`
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user