Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed 16992 -- Added InnoDB warning regarding reuse of AUTO_INCREMENT…

… values.

Thanks kent at nsc.liu.se for the report.
  • Loading branch information...
commit c54fa1a7bc365fec79d4971bf22d5ad2799fde67 1 parent bacbbb4
Keith Edmiston authored September 07, 2013 timgraham committed September 07, 2013

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
@@ -214,7 +214,10 @@ full-text indexing and searching.
214 214
 
215 215
 Since MySQL 5.5.5, the default storage engine is InnoDB_. This engine is fully
216 216
 transactional and supports foreign key references. It's probably the best
217  
-choice at this point.
  217
+choice at this point. However, note that the the InnoDB autoincrement counter
  218
+is lost on a MySQL restart because it does not remember the
  219
+``AUTO_INCREMENT`` value, instead recreating it as "max(id)+1". This may
  220
+result in an inadvertent reuse of :class:`~django.db.models.AutoField` values.
218 221
 
219 222
 If you upgrade an existing project to MySQL 5.5.5 and subsequently add some
220 223
 tables, ensure that your tables are using the same storage engine (i.e. MyISAM

0 notes on commit c54fa1a

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