Skip to content

Commit

Permalink
Fix deployment with PostgreSQL 15
Browse files Browse the repository at this point in the history
We previously did not change the database owner for PostgreSQL,
resulting in the database being owned by the `postgres` user.

PostgreSQL 15 revoked the CREATE permission from all users except a
database owner from the public schema.  As a consequence, migration that
are expected to create objects are not allowed to do so with this
version and newer of PostgreSQL.

Explicitly make the database user the owner of it, to allow migrations.
  • Loading branch information
smortex committed Jun 20, 2024
1 parent 0bf97e5 commit d7b99fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manifests/back/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

postgresql::server::db { $taiga::back::db_name:
user => $taiga::back::db_user,
owner => $taiga::back::db_user,
password => postgresql::postgresql_password($taiga::back::db_user, $taiga::back::db_password),
}
}

0 comments on commit d7b99fe

Please sign in to comment.