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
This commit is contained in:
Adrian Holovaty 2005-07-18 13:53:45 +00:00
parent 86d9ae269d
commit 78206fd08c
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ OPERATOR_MAPPING = {
# be interpolated against the values of Field.__dict__ before being output. # 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. # If a column type is set to None, it won't be included in the output.
DATA_TYPES = { DATA_TYPES = {
'AutoField': 'mediumint(9) auto_increment', 'AutoField': 'mediumint(9) unsigned auto_increment',
'BooleanField': 'bool', 'BooleanField': 'bool',
'CharField': 'varchar(%(maxlength)s)', 'CharField': 'varchar(%(maxlength)s)',
'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)', 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)',