Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

SET ROLE for running migrations

$
0
0
Hi, apologies if this has been asked before or if I missed this in the docs - I'm using postgres and I would like to have my migrations run not as the user liquibase is connecting to the DB as, but as a member of a group the liquibase user is part of. This can be accomplished by running `SET ROLE [groupname]` before executing migrations, so I can get the benefits of preconfigured default permissions on DB objects. Is there a hook that I can use to execute this or otherwise set the execution role?

Viewing all articles
Browse latest Browse all 2993

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>