R
Railway10mo ago
amorfati

Erase db on new service deployment

I want to erase railway postgres whenever i create a new deployment for my service. Curious if there's a simple way An improvised solution would be to simply delete the db on deploy, create a new one using railway graphql api or cli, then update the connection string. Checking first to see if there's some other way to do this
3 Replies
Percy
Percy10mo ago
Project ID: 8ba45b39-88ea-4bc7-b52e-0003e267db42
amorfati
amorfatiOP10mo ago
8ba45b39-88ea-4bc7-b52e-0003e267db42
Brody
Brody10mo ago
why not run a query that wipes everything in the database? or do something like using sqlite without a volume
Want results from more Discord servers?
Add your server