Browse Source

Correction for rebuild indexes to do it on the current crc database for

the project
master
Maxime Wack 6 years ago
parent
commit
9cc9cec3d0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      R/demodata.R

+ 1
- 1
R/demodata.R View File

@@ -414,6 +414,6 @@ rebuild_indexes_demodata <- function(project, host = "", admin = "", pass = "")
{
demodata <- RPostgreSQL::dbConnect(RPostgreSQL::PostgreSQL(), host = host, dbname = stringr::str_c("i2b2", stringr::str_to_lower(project), "data"), user = admin, password = pass)

RPostgreSQL::dbGetQuery(demodata, "REINDEX DATABASE i2b2demodata;")
RPostgreSQL::dbGetQuery(demodata, stringr::str_c("REINDEX DATABASE i2b2", stringr::str_to_lower(project), "data;"))
RPostgreSQL::dbDisconnect(demodata)
}

Loading…
Cancel
Save