Simplify database migrations
This commit is contained in:
parent
46d5b06bfc
commit
e6809c95db
106 changed files with 4661 additions and 6814 deletions
|
@ -1,26 +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 = 930;
|
||||
|
||||
export function updateToSchemaVersion930(
|
||||
currentVersion: number,
|
||||
db: Database,
|
||||
logger: LoggerType
|
||||
): void {
|
||||
if (currentVersion >= 930) {
|
||||
return;
|
||||
}
|
||||
|
||||
db.transaction(() => {
|
||||
// This was a migration that enabled 'secure-delete' in FTS
|
||||
|
||||
db.pragma('user_version = 930');
|
||||
})();
|
||||
|
||||
logger.info('updateToSchemaVersion930: success!');
|
||||
export default function updateToSchemaVersion930(): void {
|
||||
// This was a migration that enabled 'secure-delete' in FTS
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue