mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
20 lines
574 B
TypeScript
20 lines
574 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { WritableDB } from '../Interface.std.js';
|
|
|
|
export default function updateToSchemaVersion1380(db: WritableDB): void {
|
|
db.exec(`
|
|
CREATE TABLE donationReceipts(
|
|
id TEXT NOT NULL PRIMARY KEY,
|
|
currencyType TEXT NOT NULL,
|
|
paymentAmount INTEGER NOT NULL,
|
|
paymentDetailJson TEXT NOT NULL,
|
|
paymentType TEXT NOT NULL,
|
|
timestamp INTEGER NOT NULL
|
|
) STRICT;
|
|
|
|
CREATE INDEX donationReceipts_byTimestamp on donationReceipts(timestamp);
|
|
`);
|
|
}
|