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:
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.
Jump to solution
5 Replies
Percy
Percy12mo ago
Project ID: 668ffc82-69a0-4dfa-8d2d-3fa3fd2d127c
mcmike5414
mcmike5414OP12mo ago
project id 👉 668ffc82-69a0-4dfa-8d2d-3fa3fd2d127c
Solution
root
root12mo ago
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.
mcmike5414
mcmike5414OP12mo ago
Thank very much, it worked !
root
root12mo ago
No problem!
Want results from more Discord servers?
Add your server