Files
GRDB.swift/Tests/Crash/MigrationCrashTests.swift
T

18 lines
413 B
Swift

#if SQLITE_HAS_CODEC
import GRDBCipher
#else
import GRDB
#endif
class MigrationCrashTests: GRDBCrashTestCase {
func testMigrationNamesMustBeUnique() {
assertCrash("already registered migration: \"foo\"") {
var migrator = DatabaseMigrator()
migrator.registerMigration("foo") { db in }
migrator.registerMigration("foo") { db in }
}
}
}