Skip to content

Commit

Permalink
- cdm_add_pk() and cdm_add_fk() no longer check data integrity by…
Browse files Browse the repository at this point in the history
… default.
  • Loading branch information
krlmlr committed Sep 14, 2019
1 parent 84cd31a commit b23b969
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/foreign-keys.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @family foreign key functions
#'
#' @export
cdm_add_fk <- nse_function(c(dm, table, column, ref_table, check = TRUE), ~ {
cdm_add_fk <- nse_function(c(dm, table, column, ref_table, check = FALSE), ~ {
table_name <- as_name(ensym(table))
ref_table_name <- as_name(ensym(ref_table))

Expand Down
2 changes: 1 addition & 1 deletion R/primary-keys.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#'
#' # the following does not work
#' try(cdm_add_pk(nycflights_dm, planes, manufacturer))
cdm_add_pk <- function(dm, table, column, check = TRUE, force = FALSE) {
cdm_add_pk <- function(dm, table, column, check = FALSE, force = FALSE) {
table_name <- as_name(ensym(table))

check_correct_input(dm, table_name)
Expand Down
2 changes: 1 addition & 1 deletion man/cdm_add_fk.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/cdm_add_pk.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b23b969

Please sign in to comment.