Add indices to improve messages_on_delete trigger

This commit is contained in:
trevor-signal 2024-06-28 20:47:05 -04:00 committed by GitHub
parent 189a8a0877
commit 7ef2a9155c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 198 additions and 110 deletions

View file

@ -83,10 +83,11 @@ import { updateToSchemaVersion1040 } from './1040-undownloaded-backed-up-media';
import { updateToSchemaVersion1050 } from './1050-group-send-endorsements';
import { updateToSchemaVersion1060 } from './1060-addressable-messages-and-sync-tasks';
import { updateToSchemaVersion1070 } from './1070-attachment-backup';
import { updateToSchemaVersion1080 } from './1080-nondisappearing-addressable';
import {
updateToSchemaVersion1080,
updateToSchemaVersion1090,
version as MAX_VERSION,
} from './1080-nondisappearing-addressable';
} from './1090-message-delete-indexes';
function updateToSchemaVersion1(
currentVersion: number,
@ -2038,6 +2039,7 @@ export const SCHEMA_VERSIONS = [
updateToSchemaVersion1060,
updateToSchemaVersion1070,
updateToSchemaVersion1080,
updateToSchemaVersion1090,
];
export class DBVersionFromFutureError extends Error {