diff options
| author | Keith Edmiston <kedmist@gmail.com> | 2013-09-07 10:36:31 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-09-07 12:13:45 -0400 |
| commit | c54fa1a7bc365fec79d4971bf22d5ad2799fde67 (patch) | |
| tree | 1f72616dd6916fbc5bce57695b527e2bfc196cfc /docs | |
| parent | bacbbb481da8a582642a265459f2144db813dcee (diff) | |
Fixed 16992 -- Added InnoDB warning regarding reuse of AUTO_INCREMENT values.
Thanks kent at nsc.liu.se for the report.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/databases.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index a4e6724c46..75e2d085e8 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -214,7 +214,10 @@ full-text indexing and searching. Since MySQL 5.5.5, the default storage engine is InnoDB_. This engine is fully transactional and supports foreign key references. It's probably the best -choice at this point. +choice at this point. However, note that the the InnoDB autoincrement counter +is lost on a MySQL restart because it does not remember the +``AUTO_INCREMENT`` value, instead recreating it as "max(id)+1". This may +result in an inadvertent reuse of :class:`~django.db.models.AutoField` values. If you upgrade an existing project to MySQL 5.5.5 and subsequently add some tables, ensure that your tables are using the same storage engine (i.e. MyISAM |
