Swiftgram/Postbox/PostboxUpgrade_12to13.swift
2017-04-08 17:22:56 +03:00

12 lines
354 B
Swift

import Foundation
func postboxUpgrade_12to13(metadataTable: MetadataTable, valueBox: ValueBox) {
// drop PeerMergedOperationLogIndexTable
valueBox.dropTable(ValueBoxTable(id: 30, keyType: .binary))
// drop PeerOperationLogTable
valueBox.dropTable(ValueBoxTable(id: 31, keyType: .binary))
metadataTable.setUserVersion(13)
}