R
Railway13mo 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
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
I think that error should give you a good idea of what you need to do?
Martynas
Martynas13mo 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
Brody13mo 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
Martynas13mo ago
Sure, but the backend server still keeps the connection to the database
Brody
Brody13mo ago
they need to be closed, as the error message states
Martynas
Martynas13mo ago
Okay, can I temporrarily shut down the server on railway? Couldnt find a way
Brody
Brody13mo ago
you can remove the active deployment from its 3 dot menu
Want results from more Discord servers?
Add your server