R
Railway14mo ago
Martynas

DROP DATABASE "railway" returns cannot drop currently open database.

My goal is to rerun alembic migrations from scratch. How can I achieve that?
8 Replies
Percy
Percy14mo ago
Project ID: N/A
Brody
Brody14mo ago
I think that error should give you a good idea of what you need to do?
Martynas
MartynasOP14mo ago
Well there are 6 open sessions, so not exactly sure how to end those. Shutting down the server could be an option I guess, but I wonder if there is a more elegant option.
Brody
Brody14mo ago
from the error message, you can't have the railway database open while trying to drop it, that's just how it works
Martynas
MartynasOP14mo ago
Sure, but the backend server still keeps the connection to the database
Brody
Brody14mo ago
they need to be closed, as the error message states
Martynas
MartynasOP14mo ago
Okay, can I temporrarily shut down the server on railway? Couldnt find a way
Brody
Brody14mo ago
you can remove the active deployment from its 3 dot menu
Want results from more Discord servers?
Add your server