From 7da475cbb3fc6ffdea134f7796a346f8f2900df5 Mon Sep 17 00:00:00 2001 From: CuriousX Date: Tue, 31 Oct 2023 12:54:33 -0600 Subject: [PATCH] Update data_migration.md --- docs/operations/data_migration.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/operations/data_migration.md b/docs/operations/data_migration.md index 10395cc16..772233075 100644 --- a/docs/operations/data_migration.md +++ b/docs/operations/data_migration.md @@ -238,7 +238,9 @@ Directs the script to load only the first 100 entries into the table. You can a #### STEP 3: Send Domain invitations To send invitations for every transition domain in the transition domain table, execute the following command: -`docker compose run -T app send_domain_invitations -s` +```shell +docker compose run -T app send_domain_invitations -s +``` #### STEP 4: Test the results @@ -249,12 +251,16 @@ This script's main function is to scan the transition domain and domain tables f ##### OPTION 1 - ANALYZE ONLY To analyze our database without running migrations, execute the script without any optional arguments: -`docker compose run -T app ./manage.py master_domain_migrations --debug` +```shell +docker compose run -T app ./manage.py master_domain_migrations --debug +``` ##### OPTION 2 - RUN MIGRATIONS FEATURE To run the migrations again (all above migration steps) before analyzing, execute the following command (read the documentation on the terminal arguments below. Everything used by the migration scripts can also be passed into this script and will have the same effects). NOTE: --debug and --prompt allow you to step through the migration process and exit it after each step if you need to. It is recommended that you use these arguments when using the --runMigrations feature: -`docker compose run -T app ./manage.py master_domain_migrations --runMigrations --debug --prompt` +```shell +docker compose run -T app ./manage.py master_domain_migrations --runMigrations --debug --prompt +``` ##### COMMAND LINE ARGUMENTS