On Thu, Oct 27, 2011 at 8:06 PM, Tom Evans <tevans...@googlemail.com> wrote:
> On Thu, Oct 27, 2011 at 6:24 PM, Kayode Odeyemi <drey...@gmail.com> wrote: > > The docs says "Prints the SQL statements that would be executed for > > the flush command." > > Why did it truncate the data in the tables? > > > > sqlflush wouldn't - flush would. If your data is gone, it is not from > sqlflush. > > You could only rollback if you flushed your tables inside an > uncommitted open transaction. That sounds quite unlikely, so you will > need to restore from a backup. Sorry. > > Tom, I was surprised myself, because I read the docs before running the command: django-admin.py sqlflush It wipped off the whole table records. Maybe you should do some tests. Backup your db and run the command. I'm running mysql by the way. -- Odeyemi 'Kayode O. http://www.sinati.com. t: @charyorde -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.