diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-18 13:53:45 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-18 13:53:45 +0000 |
| commit | 78206fd08c72a37a9ca1379e5c689edb59511efb (patch) | |
| tree | 8e6aa576b8681662038ba435f1c94f1d3b7ce9d9 | |
| parent | 86d9ae269d969f71e44234493f9af529253391c0 (diff) | |
Fixed #56 -- MySQL id columns are now UNSIGNED. Thanks, Manuzhai!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/db/backends/mysql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/db/backends/mysql.py b/django/core/db/backends/mysql.py index e3e3a5a299..cfea2f640e 100644 --- a/django/core/db/backends/mysql.py +++ b/django/core/db/backends/mysql.py @@ -98,7 +98,7 @@ OPERATOR_MAPPING = { # be interpolated against the values of Field.__dict__ before being output. # If a column type is set to None, it won't be included in the output. DATA_TYPES = { - 'AutoField': 'mediumint(9) auto_increment', + 'AutoField': 'mediumint(9) unsigned auto_increment', 'BooleanField': 'bool', 'CharField': 'varchar(%(maxlength)s)', 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)', |
