Swiftgram/submodules/Postbox/Sources/PostboxUpgrade_12to13.swift
2019-11-01 17:11:12 +04:00

12 lines
462 B
Swift

import Foundation
func postboxUpgrade_12to13(metadataTable: MetadataTable, valueBox: ValueBox, progress: (Float) -> Void) {
// drop PeerMergedOperationLogIndexTable
valueBox.removeAllFromTable(ValueBoxTable(id: 30, keyType: .binary, compactValuesOnCreation: true))
// drop PeerOperationLogTable
valueBox.removeAllFromTable(ValueBoxTable(id: 31, keyType: .binary, compactValuesOnCreation: false))
metadataTable.setUserVersion(13)
}