Skip to content

Commit

Permalink
Also reset PKs
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 9, 2023
1 parent a5f93ef commit ea27da7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/db-interface.R
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ copy_dm_to <- function(
dm_for_sql <- dm
} else {
def_no_keys <- dm_get_def(dm)
# FIXME: Add test
def_no_keys$pks[] <- list(new_pk())
def_no_keys$uks[] <- list(new_uk())
def_no_keys$fks[] <- list(new_fk())
# Must keep primary keys
Expand Down

0 comments on commit ea27da7

Please sign in to comment.