-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/OHDSI/Characterization i…
…nto develop
- Loading branch information
Showing
6 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Authors@R: c( | |
person("Chris", "Knoll", , "[email protected]", role = c("aut")) | ||
) | ||
Maintainer: Jenna Reps <[email protected]> | ||
Description: Various characterizations of target and outcome cohorts. | ||
Description: Various characterizations of target and outcome cohorts for data mapped to the OMOP CDM. | ||
License: Apache License 2.0 | ||
URL: https://ohdsi.github.io/Characterization, https://github.com/OHDSI/Characterization | ||
BugReports: https://github.com/OHDSI/Characterization/issues | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
inst/sql/postgresql/migrations/Migration_2-v2_1_1_mean_exposure_time_type.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Database migrations for verion 2.1.1 | ||
|
||
{DEFAULT @package_version = package_version} | ||
{DEFAULT @migration = migration} | ||
{DEFAULT @table_prefix = ''} | ||
|
||
-- Change the column type of mean_exposure_time | ||
ALTER TABLE @database_schema.@table_prefixcohort_counts ALTER COLUMN mean_exposure_time TYPE float; |
9 changes: 9 additions & 0 deletions
9
inst/sql/sql_server/migrations/Migration_2-v2_1_1_mean_exposure_time_type.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- Database migrations for verion 2.1.1 | ||
|
||
{DEFAULT @package_version = package_version} | ||
{DEFAULT @migration = migration} | ||
{DEFAULT @table_prefix = ''} | ||
|
||
-- Change the column type of mean_exposure_time | ||
ALTER TABLE @database_schema.@table_prefixcohort_counts ALTER COLUMN mean_exposure_time float; | ||
|
39 changes: 39 additions & 0 deletions
39
inst/sql/sqlite/migrations/Migration_2-v2_1_1_mean_exposure_time_type.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
-- Database migrations for verion 2.1.1 | ||
|
||
{DEFAULT @package_version = package_version} | ||
{DEFAULT @migration = migration} | ||
{DEFAULT @table_prefix = ''} | ||
|
||
-- Change the column type of mean_exposure_time | ||
ALTER TABLE @database_schema.@table_prefixcohort_counts RENAME TO _cohort_counts_old; | ||
|
||
CREATE TABLE @database_schema.@table_prefixcohort_counts ( | ||
database_id varchar(100) NOT NULL, | ||
cohort_type varchar(10), | ||
target_cohort_id int, | ||
outcome_cohort_id int, | ||
risk_window_start int, | ||
risk_window_end int, | ||
start_anchor varchar(15), | ||
end_anchor varchar(15), | ||
min_prior_observation int, | ||
outcome_washout_days int, | ||
row_count int NOT NULL, | ||
person_count int NOT NULL, | ||
min_exposure_time int, | ||
mean_exposure_time float, | ||
max_exposure_time int | ||
); | ||
|
||
INSERT INTO @database_schema.@table_prefixcohort_counts | ||
(database_id, cohort_type, target_cohort_id, outcome_cohort_id, | ||
risk_window_start, risk_window_end, start_anchor, end_anchor, | ||
min_prior_observation, outcome_washout_days,row_count, person_count, | ||
min_exposure_time, mean_exposure_time, max_exposure_time) | ||
SELECT database_id, cohort_type, target_cohort_id, outcome_cohort_id, | ||
risk_window_start, risk_window_end, start_anchor, end_anchor, | ||
min_prior_observation, outcome_washout_days,row_count, person_count, | ||
min_exposure_time, mean_exposure_time, max_exposure_time | ||
FROM _cohort_counts_old; | ||
|
||
DROP TABLE _cohort_counts_old; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.