2006-05-26 13:37:21 +08:00
|
|
|
DATA_TYPES = {
|
|
|
|
'AutoField': 'number(38)',
|
|
|
|
'BooleanField': 'number(1)',
|
|
|
|
'CharField': 'varchar2(%(maxlength)s)',
|
|
|
|
'CommaSeparatedIntegerField': 'varchar2(%(maxlength)s)',
|
|
|
|
'DateField': 'date',
|
|
|
|
'DateTimeField': 'date',
|
2007-05-21 09:29:58 +08:00
|
|
|
'DecimalField': 'number(%(max_digits)s, %(decimal_places)s)',
|
2006-05-26 13:37:21 +08:00
|
|
|
'FileField': 'varchar2(100)',
|
|
|
|
'FilePathField': 'varchar2(100)',
|
2007-05-21 09:29:58 +08:00
|
|
|
'FloatField': 'double precision',
|
2006-05-26 13:37:21 +08:00
|
|
|
'ImageField': 'varchar2(100)',
|
|
|
|
'IntegerField': 'integer',
|
|
|
|
'IPAddressField': 'char(15)',
|
|
|
|
'ManyToManyField': None,
|
|
|
|
'NullBooleanField': 'integer',
|
|
|
|
'OneToOneField': 'integer',
|
|
|
|
'PhoneNumberField': 'varchar(20)',
|
|
|
|
'PositiveIntegerField': 'integer',
|
|
|
|
'PositiveSmallIntegerField': 'smallint',
|
|
|
|
'SlugField': 'varchar(50)',
|
|
|
|
'SmallIntegerField': 'smallint',
|
|
|
|
'TextField': 'long',
|
|
|
|
'TimeField': 'timestamp',
|
|
|
|
'USStateField': 'varchar(2)',
|
|
|
|
}
|