mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
20 lines
460 B
Swift
20 lines
460 B
Swift
#if GRDBCIPHER
|
|
import GRDBCipher
|
|
#elseif GRDBCUSTOMSQLITE
|
|
import GRDBCustomSQLite
|
|
#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 }
|
|
}
|
|
}
|
|
|
|
}
|