-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
127,444 additions
and
177,585 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
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,19 @@ | ||
## ValueSet SQL Dump Information | ||
|
||
In order to make the dev process as low-lift as possible, we want to avoid executing the `db-creation` scripts when booting up the application in dev mode via `npm run dev`. To that end, we've created a `pg_dump` file containing all the valusets, concepts, and foreign key mappings that would be extracted from a fresh pull of the eRSD and processed through our creation functions. This file, `vs_dump.sql` has been mounted into the docker volume of our postgres DB when running in dev mode as an entrypoint script. This means it will be automatically executed when the DB is freshly spun up. You shouldn't need to do anything to facilitate this mounting or file running. | ||
|
||
## Updating the pg_dump | ||
|
||
If the DB extract file ever needs to be updated, you can use the following simple process: | ||
|
||
1. Start up the application on your local machine using a regular `docker compose up`, and wait for the DB to be ready. | ||
2. Load the eRSD and valuesets into the DIBBs DB by using the `Create Query` button on the `/queryBuilding` page. Optionally, use DBeaver to verify that valuesets exist in the database. | ||
3. In a fresh terminal window, run | ||
|
||
``` | ||
pg_dump -U postgres -f vs_dump.sql -h localhost -p 5432 tefca_db | ||
``` | ||
|
||
If the above doesn't work, try replacing `localhost` with `0.0.0.0`. | ||
4. Enter the DB password when prompted. | ||
5. The extract file should now be created. It should automatically be located in `/query-connector`, but if it isn't, put it there. |
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
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
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
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
175,314 changes: 0 additions & 175,314 deletions
175,314
query-connector/flyway/sql/V01_02__load_tcr_data.sql
This file was deleted.
Oops, something went wrong.
157 changes: 0 additions & 157 deletions
157
query-connector/flyway/sql/V01_03__insert_hardcoded_values.sql
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
query-connector/flyway/sql/V01_04__insert_tcr_default_queries.sql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.