mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
21 lines
721 B
Swift
21 lines
721 B
Swift
// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
import GRDB
|
|
import SessionUtilitiesKit
|
|
|
|
/// Legacy closed groups are no longer supported so we can drop the `closedGroupKeyPair` table from
|
|
/// the database
|
|
enum _039_DropLegacyClosedGroupKeyPairTable: Migration {
|
|
static let identifier: String = "messagingKit.DropLegacyClosedGroupKeyPairTable"
|
|
static let minExpectedRunDuration: TimeInterval = 0.1
|
|
static var createdTables: [(FetchableRecord & TableRecord).Type] = []
|
|
|
|
static func migrate(_ db: ObservingDatabase, using dependencies: Dependencies) throws {
|
|
try db.drop(table: "closedGroupKeyPair")
|
|
|
|
MigrationExecution.updateProgress(1)
|
|
}
|
|
}
|
|
|