Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
naftalmm committed Sep 3, 2023
1 parent e886b84 commit 7f653d7
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -645,4 +645,20 @@ class CreateMissingTablesAndColumnsTests : DatabaseTestsBase() {
}
}
}

@Test
fun testCreateCompositePrimaryKeyTableAndCompositeForeignKeyInVariousOrder() {
withTables(CompositeForeignKeyTable, CompositePrimaryKeyTable) {
SchemaUtils.createMissingTablesAndColumns(CompositePrimaryKeyTable, CompositeForeignKeyTable)
}
withTables(CompositeForeignKeyTable, CompositePrimaryKeyTable) {
SchemaUtils.createMissingTablesAndColumns(CompositeForeignKeyTable, CompositePrimaryKeyTable)
}
withTables(CompositePrimaryKeyTable, CompositeForeignKeyTable) {
SchemaUtils.createMissingTablesAndColumns(CompositePrimaryKeyTable, CompositeForeignKeyTable)
}
withTables(CompositePrimaryKeyTable, CompositeForeignKeyTable) {
SchemaUtils.createMissingTablesAndColumns(CompositeForeignKeyTable, CompositePrimaryKeyTable)
}
}
}

0 comments on commit 7f653d7

Please sign in to comment.