Django

Code

Changeset 4725

Show
Ignore:
Timestamp:
03/14/07 14:58:17 (1 year ago)
Author:
bouldersprinters
Message:

boulder-oracle-sprint: Fixed #3722. Thanks to Ben Khoo for the catch and the
patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/boulder-oracle-sprint/django/db/backends/oracle/creation.py

    r4720 r4725  
    2323    'OneToOneField':                'NUMBER(11)', 
    2424    'PhoneNumberField':             'VARCHAR2(20)', 
    25     'PositiveIntegerField':         'NUMBER(11) CHECK (%(column)s >= 1)', 
    26     'PositiveSmallIntegerField':    'NUMBER(11) CHECK (%(column)s >= 1)', 
     25    'PositiveIntegerField':         'NUMBER(11) CHECK (%(column)s >= 0)', 
     26    'PositiveSmallIntegerField':    'NUMBER(11) CHECK (%(column)s >= 0)', 
    2727    'SlugField':                    'VARCHAR2(50)', 
    2828    'SmallIntegerField':            'NUMBER(11)',