mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 01:48:13 +01:00
Reorder migrations
This commit is contained in:
25
ts/sql/migrations/75-noop.ts
Normal file
25
ts/sql/migrations/75-noop.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { Database } from '@signalapp/better-sqlite3';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging';
|
||||
|
||||
export default function updateToSchemaVersion75(
|
||||
currentVersion: number,
|
||||
db: Database,
|
||||
logger: LoggerType
|
||||
): void {
|
||||
if (currentVersion >= 75) {
|
||||
return;
|
||||
}
|
||||
|
||||
db.transaction(() => {
|
||||
// This was previously a FTS5 migration, but we had to reorder the
|
||||
// migrations for backports.
|
||||
// See: migrations 76 and 77.
|
||||
db.pragma('user_version = 75');
|
||||
})();
|
||||
|
||||
logger.info('updateToSchemaVersion75: success!');
|
||||
}
|
||||
Reference in New Issue
Block a user