
## Upgrade Modes
> [`Cloud Servers`](https://phx-erp.youtrack.cloud/articles/INT-A-105/PostgreSQL-Docker-Upgrade-Rollback-Guide-Any-Version-Any-Version?edit=true)
> [`Self Hosted`](https://phx-erp.youtrack.cloud/articles/INT-A-106/PostgreSQL-Upgrade-Rollback-Self-Hosted)

# Quick Move

## Upgrade PostgreSQL
```bash
docker compose --profile postgres-upgrade run --rm postgres-auto-upgrade
```

## Rollback PostgreSQL (if needed)
```bash
docker compose --profile postgres-rollback run --rm postgres-auto-rollback
```
