Skip to content

Commit

Permalink
#384 Defer Foreign references during creation / Test fixed for MSSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapac committed Sep 21, 2018
1 parent 28157b1 commit d7c1163
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,11 @@ class DDLTests : DatabaseTestsBase() {
}

object Table1 : IntIdTable() {
val table2 = reference("teamId", Table2, onDelete = ReferenceOption.CASCADE)
val table2 = reference("teamId", Table2, onDelete = ReferenceOption.NO_ACTION)
}

object Table2 : IntIdTable() {
val table1 = optReference("teamId", Table1, onDelete = ReferenceOption.SET_NULL)
val table1 = optReference("teamId", Table1, onDelete = ReferenceOption.NO_ACTION)
}

@Test fun testCrossReference() {
Expand Down

0 comments on commit d7c1163

Please sign in to comment.