Swiftgram/Postbox/PostboxUpgrade_21to22.swift
2019-05-14 19:32:28 +02:00

17 lines
496 B
Swift

import Foundation
#if os(macOS)
import SwiftSignalKitMac
#else
import SwiftSignalKit
#endif
func postboxUpgrade_21to22(queue: Queue, basePath: String, valueBox: ValueBox, encryptionParameters: ValueBoxEncryptionParameters, progress: (Float) -> Void) -> String? {
postboxLog("Upgrade 21->22 started")
valueBox.begin()
let metadataTable = MetadataTable(valueBox: valueBox, table: MetadataTable.tableSpec(0))
metadataTable.setUserVersion(22)
valueBox.commit()
return nil
}