Re: clear database (drop all tables)

2015-04-29 Thread Derek
As usual, StackOverflow to the rescue ... http://stackoverflow.com/questions/3414247/django-drop-all-tables-from-database On Wednesday, 29 April 2015 12:11:51 UTC+2, lars van Gemerden wrote: > > Hi all, > > Is there a simple programmatic way to drop all tables in the database > (e.g. for testin

Re: clear database (drop all tables)

2015-04-29 Thread Bill Freeman
With suitable privileges, you can drop the database and recreate it. In at least some databases the user privilege grants are not lost with the database and don't have to be recreated when the database is. And, if you're using SQLite, just remove the file. On Wed, Apr 29, 2015 at 6:10 AM, lars v