From d7c1163b760957e3e2085463a89502a40eaebbbc Mon Sep 17 00:00:00 2001 From: "andrey.tarashevskiy" Date: Fri, 21 Sep 2018 17:01:40 +0300 Subject: [PATCH] #384 Defer Foreign references during creation / Test fixed for MSSQL --- .../kotlin/org/jetbrains/exposed/sql/tests/shared/DDLTests.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/DDLTests.kt b/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/DDLTests.kt index 6f9963d0dd..eb8312c7dc 100644 --- a/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/DDLTests.kt +++ b/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/DDLTests.kt @@ -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() {