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
Project ID:
N/A
I think that error should give you a good idea of what you need to do?
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.
from the error message, you can't have the
railway
database open while trying to drop it, that's just how it worksSure, but the backend server still keeps the connection to the database
they need to be closed, as the error message states
Okay, can I temporrarily shut down the server on railway? Couldnt find a way
you can remove the active deployment from its 3 dot menu