From 09005281ac54effa58befb9fe8aba2327f2a8136 Mon Sep 17 00:00:00 2001 From: Boulder Sprinters Date: Wed, 14 Mar 2007 19:58:17 +0000 Subject: [PATCH] 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 --- django/db/backends/oracle/creation.py | 4 ++-- 1 file 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',