diff --git a/content/VCS-Documentation/server-install/Database Migration Scripts.md b/content/VCS-Documentation/server-install/Database Migration Scripts.md index 0514d0bd3..9ed2eb767 100644 --- a/content/VCS-Documentation/server-install/Database Migration Scripts.md +++ b/content/VCS-Documentation/server-install/Database Migration Scripts.md @@ -3,9 +3,9 @@ This directory contains scripts for migrating an SQLite database to a PostgreSQL ## Prerequisites -- Postgre installed and running -- Liquibase installed -- Execution of Liquibase scripts +- Postgres installed and running +- Liquibase installed (Automated with [[Postgres + docker compose setup]]) +- Execution of Liquibase scripts (Automated with [[Postgres + docker compose setup]]) - SQLite database file(s) to be migrated(for upgrades only) ## Setup @@ -42,7 +42,7 @@ ServerID - server id for the server PSQL_PATH - path to Postgres psql Example: `docker exec -i artsentry-services-postgres-1 psql` -`artsentry-services-postgres-1` - name of the Docker container which can be found by running `docker ps` +`artsentry-services-postgres-1` - name of the Docker container which can be found by running `docker ps` ([[running services.png]]) #### New Server Install @@ -88,6 +88,14 @@ If you want to redirect the output to a different file, use the following comman ./database_migration.sh 'docker exec -i artsentry-services-postgres-1 psql' > migration.log ``` +#### Start VCS Server +After completing the required steps in [[Postgres + docker compose setup]] and executing the script(s) above, start the VCS Server + +```bash +systemctl start vcs +``` + + ## Scripts Description(FYI) - **database_migration.sh**: Main script that orchestrates the migration process diff --git a/content/VCS-Documentation/server-install/Postgres + docker compose setup.md b/content/VCS-Documentation/server-install/Postgres + docker compose setup.md index 0ddee4ac3..bc75e2e41 100644 --- a/content/VCS-Documentation/server-install/Postgres + docker compose setup.md +++ b/content/VCS-Documentation/server-install/Postgres + docker compose setup.md @@ -174,7 +174,4 @@ docker compose --env-file ../compose-cfg/.env down To check all the running services see: [[running services.png]] -After the docker compose services are running start the VCS server -```bash -systemctl start vcs -``` +After the docker compose services are running follow the [[Database Migration Scripts]] before starting the VCS Server