Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] Fixed #16992 -- Added InnoDB warning regarding reuse of AUTO_…

…INCREMENT values.

Thanks kent at nsc.liu.se for the report.

Backport of c54fa1a from master
  • Loading branch information...
commit 37587624bf79490e97da1bd04547cdce8b77b9fb 1 parent afc624c
Keith Edmiston authored timgraham committed

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  docs/ref/databases.txt
5  docs/ref/databases.txt
@@ -161,7 +161,10 @@ full-text indexing and searching.
161 161
 
162 162
 Since MySQL 5.5.5, the default storage engine is InnoDB_. This engine is fully
163 163
 transactional and supports foreign key references. It's probably the best
164  
-choice at this point.
  164
+choice at this point. However, note that the the InnoDB autoincrement counter
  165
+is lost on a MySQL restart because it does not remember the
  166
+``AUTO_INCREMENT`` value, instead recreating it as "max(id)+1". This may
  167
+result in an inadvertent reuse of :class:`~django.db.models.AutoField` values.
165 168
 
166 169
 If you upgrade an existing project to MySQL 5.5.5 and subsequently add some
167 170
 tables, ensure that your tables are using the same storage engine (i.e. MyISAM

0 notes on commit 3758762

Please sign in to comment.
Something went wrong with that request. Please try again.