Monday, July 4, 2016

Re: resetting table id (SOLVED)

On 4 July 2016 at 01:09, Gary Roach <gary719_list1@verizon.net> wrote:
> All of this drove home the fact that db.sqlite3 is no more than a text file
> and can be thrown away and recreated any time I like


wrong.

SQLite keeps the database on a single file, but its nowhere near a
"text file". you did truncate to a single byte ('\n', added by
default if you don't use the '-n' option on echo), and it had to be
thrown away and recreated. it would've been 'nicer' to just delete
it.

--
Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFkDaoT13BWnXTv0KNfGtEpRLqQobZ9Hbi_yzbzz8hi7-yVaZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment