mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
13 lines
462 B
Swift
13 lines
462 B
Swift
import Foundation
|
|
|
|
import SwiftSignalKit
|
|
|
|
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), useCaches: false)
|
|
metadataTable.setUserVersion(22)
|
|
valueBox.commit()
|
|
return nil
|
|
}
|