Skip to content

Commit

Permalink
Some more code to clean up garbage on testing servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin_mschuemi authored and Admin_mschuemi committed Sep 19, 2023
1 parent 7f49afe commit 66c1132
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extras/PackageMaintenance.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ databaseSchema <- Sys.getenv("CDM5_ORACLE_OHDSI_SCHEMA")
tables <- getTableNames(connection, databaseSchema, cast = "none")
sql <- paste(sprintf("DROP TABLE %s.%s;", databaseSchema, tables), collapse= "\n")
executeSql(connection, sql)

databaseSchema <- Sys.getenv("CDM5_ORACLE_CDM54_SCHEMA")
tables <- getTableNames(connection, databaseSchema, cast = "none")
tables <- tables[grepl("", tables)]
sql <- paste(sprintf("DROP TABLE %s.%s;", databaseSchema, tables), collapse= "\n")
executeSql(connection, sql)

disconnect(connection)

# Postgres
Expand Down

0 comments on commit 66c1132

Please sign in to comment.