Skip to content

Commit

Permalink
Also reset PKs
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Dec 21, 2023
1 parent 463c641 commit 24ad46e
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 @@ -167,6 +167,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 24ad46e

Please sign in to comment.