signal-desktop/ts/sql/migrations/70-story-reply-index.ts

14 lines
328 B
TypeScript
Raw Normal View History

2023-01-03 11:55:46 -08:00
// Copyright 2021 Signal Messenger, LLC
2022-11-28 09:19:48 -08:00
// SPDX-License-Identifier: AGPL-3.0-only
2025-03-12 14:45:54 -07:00
import type { Database } from '@signalapp/sqlcipher';
2022-11-28 09:19:48 -08:00
2025-08-06 10:32:08 -07:00
export default function updateToSchemaVersion70(db: Database): void {
// Used in `getAllStories`.
db.exec(
`
CREATE INDEX messages_by_storyId ON messages (storyId);
`
);
2022-11-28 09:19:48 -08:00
}