Ticket #42: db.patch

File db.patch, 1.0 KB (added by nullstyle, 10 years ago)
  • django/core/db/backends/postgresql.py

     
    105105    'IPAddressField':    'inet',
    106106    'ManyToManyField':   None,
    107107    'NullBooleanField':  'boolean',
     108    'OneToOneField':   None,
    108109    'PhoneNumberField':  'varchar(20)',
    109110    'PositiveIntegerField': 'integer CHECK (%(name)s >= 0)',
    110111    'PositiveSmallIntegerField': 'smallint CHECK (%(name)s >= 0)',
  • django/core/db/backends/mysql.py

     
    9595    'IPAddressField':    'char(15)',
    9696    'ManyToManyField':   None,
    9797    'NullBooleanField':  'bool',
     98    'OneToOneField':   None,
    9899    'PhoneNumberField':  'varchar(20)',
    99100    'PositiveIntegerField': 'integer UNSIGNED',
    100101    'PositiveSmallIntegerField': 'smallint UNSIGNED',
Back to Top