Skip to content

Commit

Permalink
Fix FOREIGN KEY document
Browse files Browse the repository at this point in the history
  • Loading branch information
takapi327 committed Nov 1, 2023
1 parent 18ef5c2 commit 86129e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/mdoc/ja/01-Table-Definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ val user = Table[User]("user")(
column("post_id", BIGINT[Long]),
column("post_category", SMALLINT[Short])
)
.keySet(table => FOREIGN_KEY(List(table.postId, table.postCategory), REFERENCE(post, post.id, post.category)))
.keySet(table => FOREIGN_KEY((table.postId, table.postCategory), REFERENCE(post, (post.id, post.category))))

// CREATE TABLE `user` (
// ...,
Expand Down

0 comments on commit 86129e9

Please sign in to comment.