summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-03-14 19:58:17 +0000
committerBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-03-14 19:58:17 +0000
commit09005281ac54effa58befb9fe8aba2327f2a8136 (patch)
treebb6b70b8173e4d68feaf3503c290a889e28b2363
parentca343fc0ac546822839e5737c30c887dd59176b3 (diff)
boulder-oracle-sprint: Fixed #3722. Thanks to Ben Khoo for the catch and the
patch. git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/backends/oracle/creation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/oracle/creation.py b/django/db/backends/oracle/creation.py
index 0b322bbfc7..982689523e 100644
--- a/django/db/backends/oracle/creation.py
+++ b/django/db/backends/oracle/creation.py
@@ -22,8 +22,8 @@ DATA_TYPES = {
'NullBooleanField': 'NUMBER(1) CHECK ((%(column)s IN (0,1)) OR (%(column)s IS NULL))',
'OneToOneField': 'NUMBER(11)',
'PhoneNumberField': 'VARCHAR2(20)',
- 'PositiveIntegerField': 'NUMBER(11) CHECK (%(column)s >= 1)',
- 'PositiveSmallIntegerField': 'NUMBER(11) CHECK (%(column)s >= 1)',
+ 'PositiveIntegerField': 'NUMBER(11) CHECK (%(column)s >= 0)',
+ 'PositiveSmallIntegerField': 'NUMBER(11) CHECK (%(column)s >= 0)',
'SlugField': 'VARCHAR2(50)',
'SmallIntegerField': 'NUMBER(11)',
'TextField': 'NCLOB',