Ticket #3588: 3588-filefield_maxlength.patch
File 3588-filefield_maxlength.patch, 4.5 KB (added by , 18 years ago) |
---|
-
django/db/backends/ado_mssql/creation.py
5 5 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)', 6 6 'DateField': 'smalldatetime', 7 7 'DateTimeField': 'smalldatetime', 8 'FileField': 'varchar( 100)',9 'FilePathField': 'varchar( 100)',8 'FileField': 'varchar(255)', 9 'FilePathField': 'varchar(255)', 10 10 'FloatField': 'numeric(%(max_digits)s, %(decimal_places)s)', 11 'ImageField': 'varchar( 100)',11 'ImageField': 'varchar(255)', 12 12 'IntegerField': 'int', 13 13 'IPAddressField': 'char(15)', 14 14 'ManyToManyField': None, -
django/db/backends/mysql/creation.py
9 9 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)', 10 10 'DateField': 'date', 11 11 'DateTimeField': 'datetime', 12 'FileField': 'varchar( 100)',13 'FilePathField': 'varchar( 100)',12 'FileField': 'varchar(255)', 13 'FilePathField': 'varchar(255)', 14 14 'FloatField': 'numeric(%(max_digits)s, %(decimal_places)s)', 15 'ImageField': 'varchar( 100)',15 'ImageField': 'varchar(255)', 16 16 'IntegerField': 'integer', 17 17 'IPAddressField': 'char(15)', 18 18 'ManyToManyField': None, -
django/db/backends/oracle/creation.py
5 5 'CommaSeparatedIntegerField': 'varchar2(%(maxlength)s)', 6 6 'DateField': 'date', 7 7 'DateTimeField': 'date', 8 'FileField': 'varchar2( 100)',9 'FilePathField': 'varchar2( 100)',8 'FileField': 'varchar2(255)', 9 'FilePathField': 'varchar2(255)', 10 10 'FloatField': 'number(%(max_digits)s, %(decimal_places)s)', 11 'ImageField': 'varchar2( 100)',11 'ImageField': 'varchar2(255)', 12 12 'IntegerField': 'integer', 13 13 'IPAddressField': 'char(15)', 14 14 'ManyToManyField': None, … … 17 17 'PhoneNumberField': 'varchar(20)', 18 18 'PositiveIntegerField': 'integer', 19 19 'PositiveSmallIntegerField': 'smallint', 20 'SlugField': 'varchar( 50)',20 'SlugField': 'varchar(%(maxlength)s)', 21 21 'SmallIntegerField': 'smallint', 22 22 'TextField': 'long', 23 23 'TimeField': 'timestamp', -
django/db/backends/postgresql/creation.py
9 9 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)', 10 10 'DateField': 'date', 11 11 'DateTimeField': 'timestamp with time zone', 12 'FileField': 'varchar( 100)',13 'FilePathField': 'varchar( 100)',12 'FileField': 'varchar(255)', 13 'FilePathField': 'varchar(255)', 14 14 'FloatField': 'numeric(%(max_digits)s, %(decimal_places)s)', 15 'ImageField': 'varchar( 100)',15 'ImageField': 'varchar(255)', 16 16 'IntegerField': 'integer', 17 17 'IPAddressField': 'inet', 18 18 'ManyToManyField': None, -
django/db/backends/sqlite3/creation.py
8 8 'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)', 9 9 'DateField': 'date', 10 10 'DateTimeField': 'datetime', 11 'FileField': 'varchar( 100)',12 'FilePathField': 'varchar( 100)',11 'FileField': 'varchar(255)', 12 'FilePathField': 'varchar(255)', 13 13 'FloatField': 'numeric(%(max_digits)s, %(decimal_places)s)', 14 'ImageField': 'varchar( 100)',14 'ImageField': 'varchar(255)', 15 15 'IntegerField': 'integer', 16 16 'IPAddressField': 'char(15)', 17 17 'ManyToManyField': None,