Let migration create pg database
fra
HOBBYOP

a year ago

Hello, if I understood correctly when I create a pg instance it already create a db, is there a way to skip the db creation?

my migration script take care of db creation + creation of a couple of roles/users, some action need to be run with superadmin while all the rest of migration have a bespoke user.

thanks

4 Replies

fra
HOBBYOP

a year ago

N/A


a year ago

Hello,

The Postgres software itself is creating the initial database and user by default, but of course there is no obligation to use them long term, so feel free to create your own database and users.


fra
HOBBYOP

a year ago

actually I just tried to just change the dbname env and all did work fine, I should have tried before writing, many thanks to confirm


a year ago

The database name environment variable (along with the username and password variables) is read-only. Changing them would not have any effect on the database name, username, or password.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...