Modified few steps

This commit is contained in:
acsok 2024-06-10 15:55:28 -04:00
parent ecbd7bfd12
commit d5818f96ff
2 changed files with 13 additions and 8 deletions

View File

@ -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

View File

@ -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