Skip to content

Commit

Permalink
Merge branch 'master' of github.com:UBC-CIC/vch-mri
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigues committed Mar 4, 2021
2 parents 823a8ad + 171168c commit 5c397a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/backend/init_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ CREATE TABLE IF NOT EXISTS specialty_tags (
);

-- SELECT * FROM mri_rules;
\copy mri_rules(body_part, info, contrast, priority) FROM '<Project Location>/csv/rules.csv' DELIMITER ',' CSV HEADER;
\copy mri_rules(body_part, info, contrast, priority) FROM './src/backend/csv/rules.csv' DELIMITER ',' CSV HEADER;

UPDATE mri_rules
SET bp_tk = to_tsvector(body_part);
Expand All @@ -81,16 +81,16 @@ CREATE INDEX tags_idx
ON data_results
USING GIN(tags);

\copy word_weights FROM '<Project Location>/csv/wordweights.csv' DELIMITER ',' CSV;
\copy word_weights FROM './src/backend/csv/wordweights.csv' DELIMITER ',' CSV;

\copy spellchecker FROM '<Project Location>/csv/spellchecker.csv' DELIMITER ',' CSV;
\copy spellchecker FROM './src/backend/csv/spellchecker.csv' DELIMITER ',' CSV;

\copy specialty_tags FROM '<Project Location>/csv/specialty_exams.csv' DELIMITER ',' CSV;
\copy specialty_tags FROM './src/backend/csv/specialty_exams.csv' DELIMITER ',' CSV;

UPDATE word_weights
SET word = TRIM(word);

UPDATE spellchecker
SET word = TRIM(word);

\copy conjunctions FROM '<Project Location>/csv/conjunctions.csv' DELIMITER ',' CSV;
\copy conjunctions FROM './src/backend/csv/conjunctions.csv' DELIMITER ',' CSV;

0 comments on commit 5c397a1

Please sign in to comment.