mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
Prepare for adding file suffixes
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import { ReadStatus } from '../../messages/MessageReadStatus.js';
|
||||
import { SeenStatus } from '../../MessageSeenStatus.js';
|
||||
import { strictAssert } from '../../util/assert.js';
|
||||
import { sql, sqlConstant } from '../util.js';
|
||||
import { ReadStatus } from '../../messages/MessageReadStatus.std.js';
|
||||
import { SeenStatus } from '../../MessageSeenStatus.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
import { sql, sqlConstant } from '../util.std.js';
|
||||
|
||||
const READ_STATUS_UNREAD = sqlConstant(ReadStatus.Unread);
|
||||
const READ_STATUS_READ = sqlConstant(ReadStatus.Read);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1010(db: Database): void {
|
||||
const [createTable] = sql`
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { sql } from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { getOurUuid } from './41-uuid-keys.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
import { getOurUuid } from './41-uuid-keys.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1020(
|
||||
db: WritableDB,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import { sql, sqlFragment } from '../util.js';
|
||||
import { sql, sqlFragment } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1030(db: Database): void {
|
||||
// From migration 81
|
||||
|
||||
@@ -4,21 +4,21 @@
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import * as z from 'zod';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import {
|
||||
messageAttachmentTypeSchema,
|
||||
type AttachmentDownloadJobType,
|
||||
type MessageAttachmentType,
|
||||
} from '../../types/AttachmentDownload.js';
|
||||
import type { AttachmentType } from '../../types/Attachment.js';
|
||||
import { jsonToObject, objectToJSON, sql } from '../util.js';
|
||||
import { AttachmentDownloadSource } from '../Interface.js';
|
||||
import { parsePartial } from '../../util/schemas.js';
|
||||
import { MIMETypeSchema } from '../../types/MIME.js';
|
||||
} from '../../types/AttachmentDownload.std.js';
|
||||
import type { AttachmentType } from '../../types/Attachment.std.js';
|
||||
import { jsonToObject, objectToJSON, sql } from '../util.std.js';
|
||||
import { AttachmentDownloadSource } from '../Interface.std.js';
|
||||
import { parsePartial } from '../../util/schemas.std.js';
|
||||
import { MIMETypeSchema } from '../../types/MIME.std.js';
|
||||
import {
|
||||
jobManagerJobSchema,
|
||||
type JobManagerJobType,
|
||||
} from '../../jobs/JobManager.js';
|
||||
} from '../../jobs/JobManager.std.js';
|
||||
|
||||
export type _AttachmentDownloadJobTypeV1030 = {
|
||||
attachment: AttachmentType;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1050(db: Database): void {
|
||||
const [createTables] = sql`
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1100(db: Database): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { sql, sqlConstant } from '../util.js';
|
||||
import { CallDirection, CallStatusValue } from '../../types/CallDisposition.js';
|
||||
import { sql, sqlConstant } from '../util.std.js';
|
||||
import {
|
||||
CallDirection,
|
||||
CallStatusValue,
|
||||
} from '../../types/CallDisposition.std.js';
|
||||
|
||||
const CALL_STATUS_MISSED = sqlConstant(CallStatusValue.Missed);
|
||||
const CALL_DIRECTION_INCOMING = sqlConstant(CallDirection.Incoming);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1170(db: Database): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { AttachmentDownloadSource } from '../Interface.js';
|
||||
import { AttachmentDownloadSource } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1180(db: Database): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
import assert from 'node:assert';
|
||||
import z from 'zod';
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import * as Errors from '../../types/errors.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import * as Errors from '../../types/errors.std.js';
|
||||
import {
|
||||
sessionRecordToProtobuf,
|
||||
sessionStructureToBytes,
|
||||
} from '../../util/sessionTranslation.js';
|
||||
import { getOwn } from '../../util/getOwn.js';
|
||||
import { missingCaseError } from '../../util/missingCaseError.js';
|
||||
} from '../../util/sessionTranslation.node.js';
|
||||
import { getOwn } from '../../util/getOwn.std.js';
|
||||
import { missingCaseError } from '../../util/missingCaseError.std.js';
|
||||
|
||||
export const version = 1220;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1240(db: Database): void {
|
||||
const [createTable] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1260(db: Database): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1270(db: Database): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import { v7 as getGuid } from 'uuid';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import {
|
||||
normalizePni,
|
||||
normalizeServiceId,
|
||||
toTaggedPni,
|
||||
isUntaggedPniString,
|
||||
} from '../../types/ServiceId.js';
|
||||
import { Migrations as Proto } from '../../protobuf/index.js';
|
||||
import { sql } from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { getOurUuid } from './41-uuid-keys.js';
|
||||
} from '../../types/ServiceId.std.js';
|
||||
import { Migrations as Proto } from '../../protobuf/index.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
import { getOurUuid } from './41-uuid-keys.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1280(
|
||||
db: WritableDB,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import { sql } from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1290(db: WritableDB): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import { sql } from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1300(db: WritableDB): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { sql } from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
// Value from ts/util/timestamp.ts at the time of creation of this migration
|
||||
const MAX_SAFE_DATE = 8640000000000000;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { sql } from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1320(db: WritableDB): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1330(db: Database): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1340(db: Database): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1350(db: Database): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1360(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1370(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1380(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { type WritableDB } from '../Interface.js';
|
||||
import { type WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1390(db: WritableDB): void {
|
||||
// TODO: DESKTOP-8879 Digest column is only used for deduplication purposes; here we
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1400(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { type WritableDB } from '../Interface.js';
|
||||
import { type WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1410(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { AttachmentDownloadSource, type WritableDB } from '../Interface.js';
|
||||
import { AttachmentDownloadSource, type WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1420(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { type WritableDB } from '../Interface.js';
|
||||
import { type WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1430(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { sql } from '../util.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1440(db: WritableDB): void {
|
||||
const [query] = sql`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1450(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1460(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1460(db: WritableDB): void {
|
||||
db.exec(`
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { sql } from '../util.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion1480(
|
||||
db: WritableDB,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { isValidUuid } from '../../util/isValidUuid.js';
|
||||
import Helpers from '../../textsecure/Helpers.js';
|
||||
import { createOrUpdate, getById, removeById } from '../util.js';
|
||||
import type { ItemKeyType, ReadableDB, WritableDB } from '../Interface.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { isValidUuid } from '../../util/isValidUuid.std.js';
|
||||
import Helpers from '../../textsecure/Helpers.std.js';
|
||||
import { createOrUpdate, getById, removeById } from '../util.std.js';
|
||||
import type { ItemKeyType, ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
|
||||
export function getOurUuid(db: ReadableDB): string | undefined {
|
||||
const UUID_ID: ItemKeyType = 'uuid_id';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { batchMultiVarQuery } from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { batchMultiVarQuery } from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
|
||||
export default function updateToSchemaVersion42(
|
||||
db: WritableDB,
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
|
||||
import lodash from 'lodash';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { AciString, ServiceIdString } from '../../types/ServiceId.js';
|
||||
import { normalizeAci } from '../../util/normalizeAci.js';
|
||||
import { isNotNil } from '../../util/isNotNil.js';
|
||||
import { assertDev } from '../../util/assert.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import type { AciString, ServiceIdString } from '../../types/ServiceId.std.js';
|
||||
import { normalizeAci } from '../../util/normalizeAci.std.js';
|
||||
import { isNotNil } from '../../util/isNotNil.std.js';
|
||||
import { assertDev } from '../../util/assert.std.js';
|
||||
import {
|
||||
TableIterator,
|
||||
getCountFromTable,
|
||||
jsonToObject,
|
||||
objectToJSON,
|
||||
} from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
} from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
const { omit } = lodash;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { getOurUuid } from './41-uuid-keys.js';
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { getOurUuid } from './41-uuid-keys.std.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
export default function updateToSchemaVersion47(
|
||||
db: WritableDB,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { isRecord } from '../../util/isRecord.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { getJobsInQueue, insertJob } from '../Server.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { isRecord } from '../../util/isRecord.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
import { getJobsInQueue, insertJob } from '../Server.node.js';
|
||||
|
||||
export default function updateToSchemaVersion51(
|
||||
db: WritableDB,
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { jsonToObject } from '../util.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { jsonToObject } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion53(
|
||||
db: Database,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { getJobsInQueue, insertJob } from '../Server.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { isRecord } from '../../util/isRecord.js';
|
||||
import { isIterable } from '../../util/iterables.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { getJobsInQueue, insertJob } from '../Server.node.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
import { isRecord } from '../../util/isRecord.std.js';
|
||||
import { isIterable } from '../../util/iterables.std.js';
|
||||
|
||||
export default function updateToSchemaVersion55(
|
||||
db: WritableDB,
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { ReadStatus } from '../../messages/MessageReadStatus.js';
|
||||
import { SeenStatus } from '../../MessageSeenStatus.js';
|
||||
import { ReadStatus } from '../../messages/MessageReadStatus.std.js';
|
||||
import { SeenStatus } from '../../MessageSeenStatus.std.js';
|
||||
|
||||
export default function updateToSchemaVersion56(db: Database): void {
|
||||
db.exec(
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import { ReadStatus } from '../../messages/MessageReadStatus.js';
|
||||
import { SeenStatus } from '../../MessageSeenStatus.js';
|
||||
import { ReadStatus } from '../../messages/MessageReadStatus.std.js';
|
||||
import { SeenStatus } from '../../MessageSeenStatus.std.js';
|
||||
|
||||
export default function updateToSchemaVersion58(db: Database): void {
|
||||
db.exec(
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { isRecord } from '../../util/isRecord.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
import { getJobsInQueue, insertJob } from '../Server.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { isRecord } from '../../util/isRecord.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
import { getJobsInQueue, insertJob } from '../Server.node.js';
|
||||
|
||||
export default function updateToSchemaVersion78(
|
||||
db: WritableDB,
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import { cleanKeys } from './920-clean-more-keys.js';
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { sqlFragment } from '../util.js';
|
||||
import { cleanKeys } from './920-clean-more-keys.std.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { sqlFragment } from '../util.std.js';
|
||||
|
||||
// Note: for many users, this is not what ran for them as migration 87. You can see that
|
||||
// migration here: https://github.com/signalapp/Signal-Desktop/commit/671e16ae1f869627f355113d6397ccb62d5461d2
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import lodash from 'lodash';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import type {
|
||||
ServiceIdString,
|
||||
AciString,
|
||||
PniString,
|
||||
} from '../../types/ServiceId.js';
|
||||
import { normalizeServiceId, normalizePni } from '../../types/ServiceId.js';
|
||||
import { normalizeAci } from '../../util/normalizeAci.js';
|
||||
import type { JSONWithUnknownFields } from '../../types/Util.js';
|
||||
import { isNotNil } from '../../util/isNotNil.js';
|
||||
} from '../../types/ServiceId.std.js';
|
||||
import { normalizeServiceId, normalizePni } from '../../types/ServiceId.std.js';
|
||||
import { normalizeAci } from '../../util/normalizeAci.std.js';
|
||||
import type { JSONWithUnknownFields } from '../../types/Util.std.js';
|
||||
import { isNotNil } from '../../util/isNotNil.std.js';
|
||||
|
||||
const { omit } = lodash;
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ import { v4 as generateUuid } from 'uuid';
|
||||
import lodash from 'lodash';
|
||||
|
||||
import type { SetOptional } from 'type-fest';
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { jsonToObject, sql } from '../util.js';
|
||||
import { getOurUuid } from './41-uuid-keys.js';
|
||||
import type { CallHistoryDetails } from '../../types/CallDisposition.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { jsonToObject, sql } from '../util.std.js';
|
||||
import { getOurUuid } from './41-uuid-keys.std.js';
|
||||
import type { CallHistoryDetails } from '../../types/CallDisposition.std.js';
|
||||
import {
|
||||
DirectCallStatus,
|
||||
CallDirection,
|
||||
@@ -18,16 +18,16 @@ import {
|
||||
GroupCallStatus,
|
||||
callHistoryDetailsSchema,
|
||||
CallMode,
|
||||
} from '../../types/CallDisposition.js';
|
||||
} from '../../types/CallDisposition.std.js';
|
||||
import type {
|
||||
WritableDB,
|
||||
MessageType,
|
||||
ConversationType,
|
||||
} from '../Interface.js';
|
||||
import { strictAssert } from '../../util/assert.js';
|
||||
import { missingCaseError } from '../../util/missingCaseError.js';
|
||||
import { isAciString } from '../../util/isAciString.js';
|
||||
import { safeParseStrict } from '../../util/schemas.js';
|
||||
} from '../Interface.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
import { missingCaseError } from '../../util/missingCaseError.std.js';
|
||||
import { isAciString } from '../../util/isAciString.std.js';
|
||||
import { safeParseStrict } from '../../util/schemas.std.js';
|
||||
|
||||
const { isObject } = lodash;
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { sql } from '../util.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion90(
|
||||
db: Database,
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
import type { Database, RunResult } from '@signalapp/sqlcipher';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import { sql } from '../util.js';
|
||||
import type { PniString } from '../../types/ServiceId.js';
|
||||
import { normalizePni } from '../../types/ServiceId.js';
|
||||
import * as Errors from '../../types/errors.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { PniString } from '../../types/ServiceId.std.js';
|
||||
import { normalizePni } from '../../types/ServiceId.std.js';
|
||||
import * as Errors from '../../types/errors.std.js';
|
||||
|
||||
export default function updateToSchemaVersion91(
|
||||
db: Database,
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
import type { Database, RunResult } from '@signalapp/sqlcipher';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { QueryFragment } from '../util.js';
|
||||
import type { PniString } from '../../types/ServiceId.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import type { QueryFragment } from '../util.std.js';
|
||||
import type { PniString } from '../../types/ServiceId.std.js';
|
||||
|
||||
import { sql, sqlFragment } from '../util.js';
|
||||
import { normalizePni } from '../../types/ServiceId.js';
|
||||
import * as Errors from '../../types/errors.js';
|
||||
import { sql, sqlFragment } from '../util.std.js';
|
||||
import { normalizePni } from '../../types/ServiceId.std.js';
|
||||
import * as Errors from '../../types/errors.std.js';
|
||||
|
||||
export default function updateToSchemaVersion920(
|
||||
db: Database,
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import type {
|
||||
ServiceIdString,
|
||||
AciString,
|
||||
PniString,
|
||||
} from '../../types/ServiceId.js';
|
||||
import { normalizePni } from '../../types/ServiceId.js';
|
||||
import { normalizeAci } from '../../util/normalizeAci.js';
|
||||
import type { JSONWithUnknownFields } from '../../types/Util.js';
|
||||
} from '../../types/ServiceId.std.js';
|
||||
import { normalizePni } from '../../types/ServiceId.std.js';
|
||||
import { normalizeAci } from '../../util/normalizeAci.std.js';
|
||||
import type { JSONWithUnknownFields } from '../../types/Util.std.js';
|
||||
|
||||
export default function updateToSchemaVersion960(
|
||||
db: Database,
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { Database } from '@signalapp/sqlcipher';
|
||||
import lodash from 'lodash';
|
||||
import { v4 as generateUuid } from 'uuid';
|
||||
|
||||
import type { LoggerType } from '../../types/Logging.js';
|
||||
import type { LoggerType } from '../../types/Logging.std.js';
|
||||
import {
|
||||
getSchemaVersion,
|
||||
getUserVersion,
|
||||
@@ -13,119 +13,119 @@ import {
|
||||
getSQLiteVersion,
|
||||
objectToJSON,
|
||||
jsonToObject,
|
||||
} from '../util.js';
|
||||
import type { WritableDB } from '../Interface.js';
|
||||
} from '../util.std.js';
|
||||
import type { WritableDB } from '../Interface.std.js';
|
||||
|
||||
import updateToSchemaVersion41 from './41-uuid-keys.js';
|
||||
import updateToSchemaVersion42 from './42-stale-reactions.js';
|
||||
import updateToSchemaVersion43 from './43-gv2-uuid.js';
|
||||
import updateToSchemaVersion44 from './44-badges.js';
|
||||
import updateToSchemaVersion45 from './45-stories.js';
|
||||
import updateToSchemaVersion46 from './46-optimize-stories.js';
|
||||
import updateToSchemaVersion47 from './47-further-optimize.js';
|
||||
import updateToSchemaVersion48 from './48-fix-user-initiated-index.js';
|
||||
import updateToSchemaVersion49 from './49-fix-preview-index.js';
|
||||
import updateToSchemaVersion50 from './50-fix-messages-unread-index.js';
|
||||
import updateToSchemaVersion51 from './51-centralize-conversation-jobs.js';
|
||||
import updateToSchemaVersion52 from './52-optimize-stories.js';
|
||||
import updateToSchemaVersion53 from './53-gv2-banned-members.js';
|
||||
import updateToSchemaVersion54 from './54-unprocessed-received-at-counter.js';
|
||||
import updateToSchemaVersion55 from './55-report-message-aci.js';
|
||||
import updateToSchemaVersion56 from './56-add-unseen-to-message.js';
|
||||
import updateToSchemaVersion57 from './57-rm-message-history-unsynced.js';
|
||||
import updateToSchemaVersion58 from './58-update-unread.js';
|
||||
import updateToSchemaVersion59 from './59-unprocessed-received-at-counter-index.js';
|
||||
import updateToSchemaVersion60 from './60-update-expiring-index.js';
|
||||
import updateToSchemaVersion61 from './61-distribution-list-storage.js';
|
||||
import updateToSchemaVersion62 from './62-add-urgent-to-send-log.js';
|
||||
import updateToSchemaVersion63 from './63-add-urgent-to-unprocessed.js';
|
||||
import updateToSchemaVersion64 from './64-uuid-column-for-pre-keys.js';
|
||||
import updateToSchemaVersion65 from './65-add-storage-id-to-stickers.js';
|
||||
import updateToSchemaVersion66 from './66-add-pni-signature-to-sent-protos.js';
|
||||
import updateToSchemaVersion67 from './67-add-story-to-unprocessed.js';
|
||||
import updateToSchemaVersion68 from './68-drop-deprecated-columns.js';
|
||||
import updateToSchemaVersion69 from './69-group-call-ring-cancellations.js';
|
||||
import updateToSchemaVersion70 from './70-story-reply-index.js';
|
||||
import updateToSchemaVersion71 from './71-merge-notifications.js';
|
||||
import updateToSchemaVersion72 from './72-optimize-call-id-message-lookup.js';
|
||||
import updateToSchemaVersion73 from './73-remove-phone-number-discovery.js';
|
||||
import updateToSchemaVersion74 from './74-optimize-convo-open.js';
|
||||
import updateToSchemaVersion75 from './75-noop.js';
|
||||
import updateToSchemaVersion76 from './76-optimize-convo-open-2.js';
|
||||
import updateToSchemaVersion77 from './77-signal-tokenizer.js';
|
||||
import updateToSchemaVersion78 from './78-merge-receipt-jobs.js';
|
||||
import updateToSchemaVersion79 from './79-paging-lightbox.js';
|
||||
import updateToSchemaVersion80 from './80-edited-messages.js';
|
||||
import updateToSchemaVersion81 from './81-contact-removed-notification.js';
|
||||
import updateToSchemaVersion82 from './82-edited-messages-read-index.js';
|
||||
import updateToSchemaVersion83 from './83-mentions.js';
|
||||
import updateToSchemaVersion84 from './84-all-mentions.js';
|
||||
import updateToSchemaVersion85 from './85-add-kyber-keys.js';
|
||||
import updateToSchemaVersion86 from './86-story-replies-index.js';
|
||||
import updateToSchemaVersion87 from './87-cleanup.js';
|
||||
import updateToSchemaVersion88 from './88-service-ids.js';
|
||||
import updateToSchemaVersion89 from './89-call-history.js';
|
||||
import updateToSchemaVersion90 from './90-delete-story-reply-screenshot.js';
|
||||
import updateToSchemaVersion91 from './91-clean-keys.js';
|
||||
import updateToSchemaVersion920 from './920-clean-more-keys.js';
|
||||
import updateToSchemaVersion930 from './930-fts5-secure-delete.js';
|
||||
import updateToSchemaVersion940 from './940-fts5-revert.js';
|
||||
import updateToSchemaVersion950 from './950-fts5-secure-delete.js';
|
||||
import updateToSchemaVersion960 from './960-untag-pni.js';
|
||||
import updateToSchemaVersion970 from './970-fts5-optimize.js';
|
||||
import updateToSchemaVersion980 from './980-reaction-timestamp.js';
|
||||
import updateToSchemaVersion990 from './990-phone-number-sharing.js';
|
||||
import updateToSchemaVersion1000 from './1000-mark-unread-call-history-messages-as-unseen.js';
|
||||
import updateToSchemaVersion1010 from './1010-call-links-table.js';
|
||||
import updateToSchemaVersion1020 from './1020-self-merges.js';
|
||||
import updateToSchemaVersion1030 from './1030-unblock-event.js';
|
||||
import updateToSchemaVersion1040 from './1040-undownloaded-backed-up-media.js';
|
||||
import updateToSchemaVersion1050 from './1050-group-send-endorsements.js';
|
||||
import updateToSchemaVersion1060 from './1060-addressable-messages-and-sync-tasks.js';
|
||||
import updateToSchemaVersion1070 from './1070-attachment-backup.js';
|
||||
import updateToSchemaVersion1080 from './1080-nondisappearing-addressable.js';
|
||||
import updateToSchemaVersion1090 from './1090-message-delete-indexes.js';
|
||||
import updateToSchemaVersion1100 from './1100-optimize-mark-call-history-read-in-conversation.js';
|
||||
import updateToSchemaVersion1110 from './1110-sticker-local-key.js';
|
||||
import updateToSchemaVersion1120 from './1120-messages-foreign-keys-indexes.js';
|
||||
import updateToSchemaVersion1130 from './1130-isStory-index.js';
|
||||
import updateToSchemaVersion1140 from './1140-call-links-deleted-column.js';
|
||||
import updateToSchemaVersion1150 from './1150-expire-timer-version.js';
|
||||
import updateToSchemaVersion1160 from './1160-optimize-calls-unread-count.js';
|
||||
import updateToSchemaVersion1170 from './1170-update-call-history-unread-index.js';
|
||||
import updateToSchemaVersion1180 from './1180-add-attachment-download-source.js';
|
||||
import updateToSchemaVersion1190 from './1190-call-links-storage.js';
|
||||
import updateToSchemaVersion1200 from './1200-attachment-download-source-index.js';
|
||||
import updateToSchemaVersion1210 from './1210-call-history-started-id.js';
|
||||
import updateToSchemaVersion1220 from './1220-blob-sessions.js';
|
||||
import updateToSchemaVersion1230 from './1230-call-links-admin-key-index.js';
|
||||
import updateToSchemaVersion1240 from './1240-defunct-call-links-table.js';
|
||||
import updateToSchemaVersion1250 from './1250-defunct-call-links-storage.js';
|
||||
import updateToSchemaVersion1260 from './1260-sync-tasks-rowid.js';
|
||||
import updateToSchemaVersion1270 from './1270-normalize-messages.js';
|
||||
import updateToSchemaVersion1280 from './1280-blob-unprocessed.js';
|
||||
import updateToSchemaVersion1290 from './1290-int-unprocessed-source-device.js';
|
||||
import updateToSchemaVersion1300 from './1300-sticker-pack-refs.js';
|
||||
import updateToSchemaVersion1310 from './1310-muted-fixup.js';
|
||||
import updateToSchemaVersion1320 from './1320-unprocessed-received-at-date.js';
|
||||
import updateToSchemaVersion1330 from './1330-sync-tasks-type-index.js';
|
||||
import updateToSchemaVersion1340 from './1340-recent-gifs.js';
|
||||
import updateToSchemaVersion1350 from './1350-notification-profiles.js';
|
||||
import updateToSchemaVersion1360 from './1360-attachments.js';
|
||||
import updateToSchemaVersion1370 from './1370-message-attachment-indexes.js';
|
||||
import updateToSchemaVersion1380 from './1380-donation-receipts.js';
|
||||
import updateToSchemaVersion1390 from './1390-attachment-download-keys.js';
|
||||
import updateToSchemaVersion1400 from './1400-simplify-receipts.js';
|
||||
import updateToSchemaVersion1410 from './1410-remove-wallpaper.js';
|
||||
import updateToSchemaVersion1420 from './1420-backup-downloads.js';
|
||||
import updateToSchemaVersion1430 from './1430-call-links-epoch-id.js';
|
||||
import updateToSchemaVersion1440 from './1440-chat-folders.js';
|
||||
import updateToSchemaVersion1450 from './1450-all-media.js';
|
||||
import updateToSchemaVersion1460 from './1460-attachment-duration.js';
|
||||
import updateToSchemaVersion1470 from './1470-kyber-triple.js';
|
||||
import updateToSchemaVersion1480 from './1480-chat-folders-remove-duplicates.js';
|
||||
import updateToSchemaVersion41 from './41-uuid-keys.std.js';
|
||||
import updateToSchemaVersion42 from './42-stale-reactions.std.js';
|
||||
import updateToSchemaVersion43 from './43-gv2-uuid.std.js';
|
||||
import updateToSchemaVersion44 from './44-badges.std.js';
|
||||
import updateToSchemaVersion45 from './45-stories.std.js';
|
||||
import updateToSchemaVersion46 from './46-optimize-stories.std.js';
|
||||
import updateToSchemaVersion47 from './47-further-optimize.std.js';
|
||||
import updateToSchemaVersion48 from './48-fix-user-initiated-index.std.js';
|
||||
import updateToSchemaVersion49 from './49-fix-preview-index.std.js';
|
||||
import updateToSchemaVersion50 from './50-fix-messages-unread-index.std.js';
|
||||
import updateToSchemaVersion51 from './51-centralize-conversation-jobs.node.js';
|
||||
import updateToSchemaVersion52 from './52-optimize-stories.std.js';
|
||||
import updateToSchemaVersion53 from './53-gv2-banned-members.std.js';
|
||||
import updateToSchemaVersion54 from './54-unprocessed-received-at-counter.std.js';
|
||||
import updateToSchemaVersion55 from './55-report-message-aci.node.js';
|
||||
import updateToSchemaVersion56 from './56-add-unseen-to-message.std.js';
|
||||
import updateToSchemaVersion57 from './57-rm-message-history-unsynced.std.js';
|
||||
import updateToSchemaVersion58 from './58-update-unread.std.js';
|
||||
import updateToSchemaVersion59 from './59-unprocessed-received-at-counter-index.std.js';
|
||||
import updateToSchemaVersion60 from './60-update-expiring-index.std.js';
|
||||
import updateToSchemaVersion61 from './61-distribution-list-storage.std.js';
|
||||
import updateToSchemaVersion62 from './62-add-urgent-to-send-log.std.js';
|
||||
import updateToSchemaVersion63 from './63-add-urgent-to-unprocessed.std.js';
|
||||
import updateToSchemaVersion64 from './64-uuid-column-for-pre-keys.std.js';
|
||||
import updateToSchemaVersion65 from './65-add-storage-id-to-stickers.std.js';
|
||||
import updateToSchemaVersion66 from './66-add-pni-signature-to-sent-protos.std.js';
|
||||
import updateToSchemaVersion67 from './67-add-story-to-unprocessed.std.js';
|
||||
import updateToSchemaVersion68 from './68-drop-deprecated-columns.std.js';
|
||||
import updateToSchemaVersion69 from './69-group-call-ring-cancellations.std.js';
|
||||
import updateToSchemaVersion70 from './70-story-reply-index.std.js';
|
||||
import updateToSchemaVersion71 from './71-merge-notifications.std.js';
|
||||
import updateToSchemaVersion72 from './72-optimize-call-id-message-lookup.std.js';
|
||||
import updateToSchemaVersion73 from './73-remove-phone-number-discovery.std.js';
|
||||
import updateToSchemaVersion74 from './74-optimize-convo-open.std.js';
|
||||
import updateToSchemaVersion75 from './75-noop.std.js';
|
||||
import updateToSchemaVersion76 from './76-optimize-convo-open-2.std.js';
|
||||
import updateToSchemaVersion77 from './77-signal-tokenizer.std.js';
|
||||
import updateToSchemaVersion78 from './78-merge-receipt-jobs.node.js';
|
||||
import updateToSchemaVersion79 from './79-paging-lightbox.std.js';
|
||||
import updateToSchemaVersion80 from './80-edited-messages.std.js';
|
||||
import updateToSchemaVersion81 from './81-contact-removed-notification.std.js';
|
||||
import updateToSchemaVersion82 from './82-edited-messages-read-index.std.js';
|
||||
import updateToSchemaVersion83 from './83-mentions.std.js';
|
||||
import updateToSchemaVersion84 from './84-all-mentions.std.js';
|
||||
import updateToSchemaVersion85 from './85-add-kyber-keys.std.js';
|
||||
import updateToSchemaVersion86 from './86-story-replies-index.std.js';
|
||||
import updateToSchemaVersion87 from './87-cleanup.std.js';
|
||||
import updateToSchemaVersion88 from './88-service-ids.std.js';
|
||||
import updateToSchemaVersion89 from './89-call-history.node.js';
|
||||
import updateToSchemaVersion90 from './90-delete-story-reply-screenshot.std.js';
|
||||
import updateToSchemaVersion91 from './91-clean-keys.std.js';
|
||||
import updateToSchemaVersion920 from './920-clean-more-keys.std.js';
|
||||
import updateToSchemaVersion930 from './930-fts5-secure-delete.std.js';
|
||||
import updateToSchemaVersion940 from './940-fts5-revert.std.js';
|
||||
import updateToSchemaVersion950 from './950-fts5-secure-delete.std.js';
|
||||
import updateToSchemaVersion960 from './960-untag-pni.std.js';
|
||||
import updateToSchemaVersion970 from './970-fts5-optimize.std.js';
|
||||
import updateToSchemaVersion980 from './980-reaction-timestamp.std.js';
|
||||
import updateToSchemaVersion990 from './990-phone-number-sharing.std.js';
|
||||
import updateToSchemaVersion1000 from './1000-mark-unread-call-history-messages-as-unseen.std.js';
|
||||
import updateToSchemaVersion1010 from './1010-call-links-table.std.js';
|
||||
import updateToSchemaVersion1020 from './1020-self-merges.std.js';
|
||||
import updateToSchemaVersion1030 from './1030-unblock-event.std.js';
|
||||
import updateToSchemaVersion1040 from './1040-undownloaded-backed-up-media.std.js';
|
||||
import updateToSchemaVersion1050 from './1050-group-send-endorsements.std.js';
|
||||
import updateToSchemaVersion1060 from './1060-addressable-messages-and-sync-tasks.std.js';
|
||||
import updateToSchemaVersion1070 from './1070-attachment-backup.std.js';
|
||||
import updateToSchemaVersion1080 from './1080-nondisappearing-addressable.std.js';
|
||||
import updateToSchemaVersion1090 from './1090-message-delete-indexes.std.js';
|
||||
import updateToSchemaVersion1100 from './1100-optimize-mark-call-history-read-in-conversation.std.js';
|
||||
import updateToSchemaVersion1110 from './1110-sticker-local-key.std.js';
|
||||
import updateToSchemaVersion1120 from './1120-messages-foreign-keys-indexes.std.js';
|
||||
import updateToSchemaVersion1130 from './1130-isStory-index.std.js';
|
||||
import updateToSchemaVersion1140 from './1140-call-links-deleted-column.std.js';
|
||||
import updateToSchemaVersion1150 from './1150-expire-timer-version.std.js';
|
||||
import updateToSchemaVersion1160 from './1160-optimize-calls-unread-count.std.js';
|
||||
import updateToSchemaVersion1170 from './1170-update-call-history-unread-index.std.js';
|
||||
import updateToSchemaVersion1180 from './1180-add-attachment-download-source.std.js';
|
||||
import updateToSchemaVersion1190 from './1190-call-links-storage.std.js';
|
||||
import updateToSchemaVersion1200 from './1200-attachment-download-source-index.std.js';
|
||||
import updateToSchemaVersion1210 from './1210-call-history-started-id.std.js';
|
||||
import updateToSchemaVersion1220 from './1220-blob-sessions.node.js';
|
||||
import updateToSchemaVersion1230 from './1230-call-links-admin-key-index.std.js';
|
||||
import updateToSchemaVersion1240 from './1240-defunct-call-links-table.std.js';
|
||||
import updateToSchemaVersion1250 from './1250-defunct-call-links-storage.std.js';
|
||||
import updateToSchemaVersion1260 from './1260-sync-tasks-rowid.std.js';
|
||||
import updateToSchemaVersion1270 from './1270-normalize-messages.std.js';
|
||||
import updateToSchemaVersion1280 from './1280-blob-unprocessed.std.js';
|
||||
import updateToSchemaVersion1290 from './1290-int-unprocessed-source-device.std.js';
|
||||
import updateToSchemaVersion1300 from './1300-sticker-pack-refs.std.js';
|
||||
import updateToSchemaVersion1310 from './1310-muted-fixup.std.js';
|
||||
import updateToSchemaVersion1320 from './1320-unprocessed-received-at-date.std.js';
|
||||
import updateToSchemaVersion1330 from './1330-sync-tasks-type-index.std.js';
|
||||
import updateToSchemaVersion1340 from './1340-recent-gifs.std.js';
|
||||
import updateToSchemaVersion1350 from './1350-notification-profiles.std.js';
|
||||
import updateToSchemaVersion1360 from './1360-attachments.std.js';
|
||||
import updateToSchemaVersion1370 from './1370-message-attachment-indexes.std.js';
|
||||
import updateToSchemaVersion1380 from './1380-donation-receipts.std.js';
|
||||
import updateToSchemaVersion1390 from './1390-attachment-download-keys.std.js';
|
||||
import updateToSchemaVersion1400 from './1400-simplify-receipts.std.js';
|
||||
import updateToSchemaVersion1410 from './1410-remove-wallpaper.std.js';
|
||||
import updateToSchemaVersion1420 from './1420-backup-downloads.std.js';
|
||||
import updateToSchemaVersion1430 from './1430-call-links-epoch-id.std.js';
|
||||
import updateToSchemaVersion1440 from './1440-chat-folders.std.js';
|
||||
import updateToSchemaVersion1450 from './1450-all-media.std.js';
|
||||
import updateToSchemaVersion1460 from './1460-attachment-duration.std.js';
|
||||
import updateToSchemaVersion1470 from './1470-kyber-triple.std.js';
|
||||
import updateToSchemaVersion1480 from './1480-chat-folders-remove-duplicates.std.js';
|
||||
|
||||
import { DataWriter } from '../Server.js';
|
||||
import { DataWriter } from '../Server.node.js';
|
||||
|
||||
const { keyBy } = lodash;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user