Skip to content

Commit

Permalink
Move the port back to 5433 (again)
Browse files Browse the repository at this point in the history
Last year Travis moved from 5433 to 5432, only for
PostgreSQL 13 (keeping older - 10, 11 and 12 - working
with 5433).

It seems that, now, they have changed also PG 13 to use 5433.

Let's see, ping-pong!
  • Loading branch information
stronk7 committed Feb 8, 2024
1 parent 25276e2 commit ec2171c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Installer/Database/PostgresDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ public function getCreateDatabaseCommand(): array
$this->host = ''; // Use sockets, or we'll need to edit pg_hba.conf and restart the server. Only if not set.
$this->port = '5433'; // We also need the port to find the correct socket file.
// Travis did it again, for PostgreSQL 13, they are back to port 5432. We need that to find the socket.
if ((int) getenv('PGVER') === 13) {
$this->port = '5432'; // We also need the port to find the correct socket file.
}
// And again-again (January 2024, back to 5433). We need to find the socket. Disabling for now.
// if ((int) getenv('PGVER') === 13) {
// $this->port = '5432'; // We also need the port to find the correct socket file.
// }
}
}
}
Expand Down

0 comments on commit ec2171c

Please sign in to comment.