mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
18 lines
413 B
Swift
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 }
|
|
}
|
|
}
|
|
|
|
}
|