mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
18 lines
419 B
Swift
18 lines
419 B
Swift
#if 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 }
|
|
}
|
|
}
|
|
|
|
}
|