Merge branch 'nl/981-test-domain-migration-script' of https://github.com/cisagov/manage.get.gov into nl/981-test-domain-migration-script

This commit is contained in:
zandercymatics 2023-11-02 12:33:25 -06:00
commit 32dd542f45
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -207,7 +207,7 @@ This will allow Docker to mount the files to a container (under `/app`) for our
- Open a terminal and navigate to `src/` - Open a terminal and navigate to `src/`
*You are now ready to run migration scripts (see "Running the Migration Scripts")* *You are now ready to run migration scripts.*
## Transition Domains (Part 2) - Running the Migration Scripts ## Transition Domains (Part 2) - Running the Migration Scripts
@ -215,7 +215,7 @@ This will allow Docker to mount the files to a container (under `/app`) for our
### STEP 1: Load Transition Domains ### STEP 1: Load Transition Domains
Run the following command, making sure the filepaths point to the right location. This will parse the three given files and load the information into the TransitionDomain table. (NOTE: If working in the sandbox, change "/app/tmp" to point to the sandbox directory) Run the following command, making sure the file paths point to the right location. This will parse the three given files and load the information into the TransitionDomain table. (NOTE: If working in cloud.gov, change "/app/tmp" to point to the `migrationdata/` directory)
```shell ```shell
docker compose run -T app ./manage.py load_transition_domain /app/tmp/escrow_domain_contacts.daily.gov.GOV.txt /app/tmp/escrow_contacts.daily.gov.GOV.txt /app/tmp/escrow_domain_statuses.daily.gov.GOV.txt --debug docker compose run -T app ./manage.py load_transition_domain /app/tmp/escrow_domain_contacts.daily.gov.GOV.txt /app/tmp/escrow_contacts.daily.gov.GOV.txt /app/tmp/escrow_domain_statuses.daily.gov.GOV.txt --debug
``` ```