Postgres service, change db name ?¿
So i recently created a postgres service, and it created a new db with name "railway", but i would like a custom name, in order to do that, would i have to deploy my own image with my custom name, or is there another way ?¿
Solution:Jump to solution
You should be able to set the
POSTGRES_DB
variable on the database service to whatever name you want, then wipe the provided pgdata
volume and redeploy the database service.5 Replies
Project ID:
668ffc82-69a0-4dfa-8d2d-3fa3fd2d127c
project id 👉 668ffc82-69a0-4dfa-8d2d-3fa3fd2d127c
Solution
You should be able to set the
POSTGRES_DB
variable on the database service to whatever name you want, then wipe the provided pgdata
volume and redeploy the database service.Thank very much, it worked !
No problem!