[web2py] Re: Web2py uses the wrong database

2011-03-29 Thread Omri
I have found my problem - it was some stupid configuration problem. But I will still want to leave the question open - What is the best way to create a new 'clean' copy of the database file, resetting all the auto-increment fields? Thanks, Omri On Tue, Mar 29, 2011 at 11:36, Omri

[web2py] Re: Web2py uses the wrong database

2011-03-29 Thread Anthony
On Tuesday, March 29, 2011 7:29:41 AM UTC-4, Omri wrote: I have found my problem - it was some stupid configuration problem. But I will still want to leave the question open - What is the best way to create a new 'clean' copy of the database file, resetting all the auto-increment fields?

[web2py] Re: Web2py uses the wrong database

2011-03-29 Thread Ross Peoples
Another option for non-SQLite databases is to use truncate() on each table. But you have to truncate() in the right order for tables that reference each other, otherwise the truncate operation will fail.

[web2py] Re: Web2py uses the wrong database

2011-03-29 Thread Omri Har-Shemesh
Thanks for your quick reply! Omri