#Postgres service, change db name ?¿

7 messages · Page 1 of 1 (latest)

marble helm
#

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 ?¿

bitter lakeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

rough blazeBOT
#

Project ID: 668ffc82-69a0-4dfa-8d2d-3fa3fd2d127c

marble helm
#

project id 👉 668ffc82-69a0-4dfa-8d2d-3fa3fd2d127c

lilac falcon
#

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.

marble helm
#

Thank very much, it worked !

lilac falcon
#

No problem!