By garantieheld
I am playing around with a Django prototype and want to do a fresh deployment with completely new migrations etc. When I am destroying the dev database and then redeploy it, it looks like the old state is restored because migrations are already applied. How to create a clean new dev database?
Edit: I tried to create a new dev database with a new name, but then it seems to raise a lot of errors when rebuilding the containers
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya, @garantieheld
You can check if the old database clusters are still available. If they’re present, you can remove them (Note to take a backup of your data as a precaution). All existing migration files can be deleted and on the next run, the new database should be created.
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.