From e26da1dfad3e6549754235c0fffa589fc338b64e Mon Sep 17 00:00:00 2001 From: Baghirov Feyruz Date: Wed, 16 Oct 2024 13:42:27 +0200 Subject: [PATCH 1/3] Modified documentation to match current procedures for changing schema --- docs/web/db_schema_guide.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/web/db_schema_guide.md b/docs/web/db_schema_guide.md index bb35946169..414a8ceb42 100644 --- a/docs/web/db_schema_guide.md +++ b/docs/web/db_schema_guide.md @@ -38,8 +38,9 @@ Edit the `sqlalchemy.url` option in according to your database configuration. ### **Step 3**: Use alembic to autogenerate migration scripts +Change username and path to your CodeChecker installation. -`alembic --name config_db revision --autogenerate -m "Change description"` +`PYTHONPATH=/home/username/codechecker/build/CodeChecker/lib/python3 alembic --name config_db revision --autogenerate -m "Change description"` ### **Step 4**: Check the generated scripts From eee8df810ef3908d962ca6ba9fce1b05dd1b9227 Mon Sep 17 00:00:00 2001 From: Baghirov Feyruz <113597150+feyruzb@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:13:01 +0200 Subject: [PATCH 2/3] Update docs/web/db_schema_guide.md modified path according to suggestion Co-authored-by: bruntib --- docs/web/db_schema_guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/web/db_schema_guide.md b/docs/web/db_schema_guide.md index 414a8ceb42..4df6eb3afc 100644 --- a/docs/web/db_schema_guide.md +++ b/docs/web/db_schema_guide.md @@ -40,7 +40,7 @@ according to your database configuration. ### **Step 3**: Use alembic to autogenerate migration scripts Change username and path to your CodeChecker installation. -`PYTHONPATH=/home/username/codechecker/build/CodeChecker/lib/python3 alembic --name config_db revision --autogenerate -m "Change description"` +`PYTHONPATH=/build/CodeChecker/lib/python3 alembic --name config_db revision --autogenerate -m "Change description"` ### **Step 4**: Check the generated scripts From c72eb7629fb0c7f1d6de3c8674a63b5e77f907af Mon Sep 17 00:00:00 2001 From: Baghirov Feyruz Date: Thu, 17 Oct 2024 16:15:58 +0200 Subject: [PATCH 3/3] removed unnescessary text --- docs/web/db_schema_guide.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/web/db_schema_guide.md b/docs/web/db_schema_guide.md index 4df6eb3afc..a5d341f319 100644 --- a/docs/web/db_schema_guide.md +++ b/docs/web/db_schema_guide.md @@ -38,7 +38,6 @@ Edit the `sqlalchemy.url` option in according to your database configuration. ### **Step 3**: Use alembic to autogenerate migration scripts -Change username and path to your CodeChecker installation. `PYTHONPATH=/build/CodeChecker/lib/python3 alembic --name config_db revision --autogenerate -m "Change description"`