Skip to content

Commit

Permalink
Also reset PKs
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr authored and aviator-bot committed Dec 21, 2023
1 parent f278fb0 commit 5d6ac5b
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 @@ -165,6 +165,8 @@ copy_dm_to <- function(
dm_for_sql <- dm
} else {
def_no_keys <- dm_get_def(dm)

Check warning on line 167 in R/db-interface.R

View check run for this annotation

Codecov / codecov/patch

R/db-interface.R#L167

Added line #L167 was not covered by tests
# FIXME: Add test
def_no_keys$pks[] <- list(new_pk())
def_no_keys$uks[] <- list(new_uk())
def_no_keys$fks[] <- list(new_fk())

Check warning on line 171 in R/db-interface.R

View check run for this annotation

Codecov / codecov/patch

R/db-interface.R#L169-L171

Added lines #L169 - L171 were not covered by tests
# Must keep primary keys
Expand Down

0 comments on commit 5d6ac5b

Please sign in to comment.