Code

Ticket #18256: 18256.diff

File 18256.diff, 906 bytes (added by timo, 21 months ago)
Line 
1diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
2index 3e256e9..6cf03e9 100644
3--- a/docs/ref/databases.txt
4+++ b/docs/ref/databases.txt
5@@ -158,6 +158,16 @@ Since MySQL 5.5.5, the default storage engine is InnoDB_. This engine is fully
6 transactional and supports foreign key references. It's probably the best
7 choice at this point.
8 
9+If you upgrade an existing project to MySQL 5.5.5 and subsequently add some
10+tables, ensure that your tables are using the same storage engine (i.e. MyISM
11+v. InnoDB). Specially, if tables that have a ``ForeignKey`` between them use
12+different storage engines, you may see an error like the following when
13+running ``syncdb``::
14+
15+    _mysql_exceptions.OperationalError: (
16+        1005, "Can't create table '\\db_name\\.#sql-4a8_ab' (errno: 150)"
17+    )
18+
19 .. versionchanged:: 1.4
20 
21 In previous versions of Django, fixtures with forward references (i.e.