Simplify database migrations

This commit is contained in:
Fedor Indutny
2025-08-06 10:32:08 -07:00
committed by GitHub
parent 46d5b06bfc
commit e6809c95db
106 changed files with 4661 additions and 6814 deletions

View File

@@ -1,25 +1,6 @@
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { Database } from '@signalapp/sqlcipher';
import type { LoggerType } from '../../types/Logging';
export const version = 950;
export function updateToSchemaVersion950(
currentVersion: number,
db: Database,
logger: LoggerType
): void {
if (currentVersion >= 950) {
return;
}
db.transaction(() => {
// This was a migration that enable secure-delete
db.pragma('user_version = 950');
})();
logger.info('updateToSchemaVersion950: success!');
export default function updateToSchemaVersion950(): void {
// This was a migration that enable secure-delete
}