Ticket #3722: oracle_positiveinteger.patch
File oracle_positiveinteger.patch, 909 bytes (added by , 18 years ago) |
---|
-
django/db/backends/oracle/creation.py
22 22 'NullBooleanField': 'NUMBER(1) CHECK ((%(column)s IN (0,1)) OR (%(column)s IS NULL))', 23 23 'OneToOneField': 'NUMBER(11)', 24 24 '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)', 27 27 'SlugField': 'VARCHAR2(50)', 28 28 'SmallIntegerField': 'NUMBER(11)', 29 29 'TextField': 'NCLOB',