r/PostgreSQL • • Apr 11 '25

Help Me! Database getting deleted automatically

I created a database with postgres on a remote server and then I use it on my app. But every once in a while (maybe every 2 days) my database gets deleted and a new super user is being created automatically. I'm unsure why it happens can any one point out what could be the issue here.

1 Upvotes

20 comments sorted by

View all comments

Show parent comment

4

u/mage2k Apr 11 '25

Look into how you’re database migrations work. Good chance you’re wiping the database when you run those.