Ticket #2896: creation.py.diff
File creation.py.diff, 2.0 KB (added by , 18 years ago) |
---|
-
django/db/backends/mysql/creation.py
5 5 DATA_TYPES = { 6 6 'AutoField': 'integer AUTO_INCREMENT', 7 7 'BooleanField': 'bool', 8 'CharField': 'varchar(%(maxlength)s) ',9 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s) ',8 'CharField': 'varchar(%(maxlength)s) CHARACTER SET \'utf8\'', 9 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s) CHARACTER SET \'utf8\'', 10 10 'DateField': 'date', 11 11 'DateTimeField': 'datetime', 12 'FileField': 'varchar(100) ',13 'FilePathField': 'varchar(100) ',12 'FileField': 'varchar(100) CHARACTER SET \'utf8\'', 13 'FilePathField': 'varchar(100) CHARACTER SET \'utf8\'', 14 14 'FloatField': 'numeric(%(max_digits)s, %(decimal_places)s)', 15 'ImageField': 'varchar(100) ',15 'ImageField': 'varchar(100) CHARACTER SET \'utf8\'', 16 16 'IntegerField': 'integer', 17 'IPAddressField': 'char(15) ',17 'IPAddressField': 'char(15) CHARACTER SET \'utf8\'', 18 18 'ManyToManyField': None, 19 19 'NullBooleanField': 'bool', 20 20 'OneToOneField': 'integer', 21 'PhoneNumberField': 'varchar(20) ',21 'PhoneNumberField': 'varchar(20) CHARACTER SET \'utf8\'', 22 22 'PositiveIntegerField': 'integer UNSIGNED', 23 23 'PositiveSmallIntegerField': 'smallint UNSIGNED', 24 'SlugField': 'varchar(%(maxlength)s) ',24 'SlugField': 'varchar(%(maxlength)s) CHARACTER SET \'utf8\'', 25 25 'SmallIntegerField': 'smallint', 26 'TextField': 'longtext ',26 'TextField': 'longtext CHARACTER SET \'utf8\'', 27 27 'TimeField': 'time', 28 'URLField': 'varchar(200) ',29 'USStateField': 'varchar(2) ',28 'URLField': 'varchar(200) CHARACTER SET \'utf8\'', 29 'USStateField': 'varchar(2) CHARACTER SET \'utf8\'', 30 30 }