diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2012-04-21 03:04:10 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2012-04-21 03:04:10 +0000 |
| commit | 4536359887b34eea5e7b8cf6864d9092b46c2980 (patch) | |
| tree | 4c30dfa4479708b347f5b56dc296f43981281ae9 /docs/ref/databases.txt | |
| parent | 53fb45c6d82da6136bd06c0318c364fd076e67be (diff) | |
Fixed #18116 -- Raised minimum MySQL version officially suported to 5.0.3.
Thanks Carl, Claude and Anssi for discussion and patch review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/databases.txt')
| -rw-r--r-- | docs/ref/databases.txt | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 59a0c36ad6..c271946bb7 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -122,30 +122,23 @@ lookups that use the ``LIKE`` operator in their SQL, as is done with the MySQL notes =========== -Django expects the database to support transactions, referential integrity, and -Unicode (UTF-8 encoding). Fortunately, MySQL_ has all these features as -available as far back as 3.23. While it may be possible to use 3.23 or 4.0, -you'll probably have less trouble if you use 4.1 or 5.0. +Version support +--------------- -MySQL 4.1 ---------- +Django supports MySQL 5.0.3 and higher. -`MySQL 4.1`_ has greatly improved support for character sets. It is possible to -set different default character sets on the database, table, and column. -Previous versions have only a server-wide character set setting. It's also the -first version where the character set can be changed on the fly. 4.1 also has -support for views, but Django currently doesn't use views. +`MySQL 5.0`_ adds the ``information_schema`` database, which contains detailed +data on all database schema. Django's ``inspectdb`` feature uses this feature. -MySQL 5.0 ---------- +.. versionchanged:: 1.5 + The minimum version requirement of MySQL 5.0.3 was set in Django 1.5. -`MySQL 5.0`_ adds the ``information_schema`` database, which contains detailed -data on all database schema. Django's ``inspectdb`` feature uses this -``information_schema`` if it's available. 5.0 also has support for stored -procedures, but Django currently doesn't use stored procedures. +Django expects the database to support Unicode (UTF-8 encoding) and delegates to +it the task of enforcing transactions and referential integrity. It is important +to be aware of the fact that the two latter ones aren't actually enforced by +MySQL when using the MyISAM storage engine, see the next section. .. _MySQL: http://www.mysql.com/ -.. _MySQL 4.1: http://dev.mysql.com/doc/refman/4.1/en/index.html .. _MySQL 5.0: http://dev.mysql.com/doc/refman/5.0/en/index.html Storage engines @@ -381,10 +374,6 @@ for the field. This affects :class:`~django.db.models.CharField`, :class:`~django.db.models.SlugField` and :class:`~django.db.models.CommaSeparatedIntegerField`. -Furthermore, if you are using a version of MySQL prior to 5.0.3, all of those -column types have a maximum length restriction of 255 characters, regardless -of whether ``unique=True`` is specified or not. - DateTime fields ~~~~~~~~~~~~~~~ |
