Uninstall old postgres before installing new one.
This commit is contained in:
parent
2d776e1db6
commit
7cbb4e361c
|
@ -203,6 +203,12 @@ jobs:
|
|||
- name: Set up PostgreSQL 16
|
||||
if: matrix.datasource == 'postgres'
|
||||
run: |
|
||||
sudo systemctl stop postgresql
|
||||
sudo apt-get remove --purge -y postgresql* libpq-dev
|
||||
sudo rm -rf /etc/postgresql /var/lib/postgresql
|
||||
sudo apt-get autoremove -y
|
||||
sudo apt-get autoclean
|
||||
|
||||
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||
sudo apt-get update
|
||||
|
|
Loading…
Reference in New Issue