Index: openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.7.0d3-5.7.0d4.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.7.0d3-5.7.0d4.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.7.0d3-5.7.0d4.sql	20 Feb 2011 00:34:00 -0000	1.2
+++ openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.7.0d3-5.7.0d4.sql	5 Mar 2011 22:35:23 -0000	1.3
@@ -440,12 +440,12 @@
         p_attribute_name || ''_'';
 
       if v_datatype.check_expr is not null then
-        v_column_spec := v_column_spec || v_constraint_stub || ''_ck check('' ||
+        v_column_spec := v_column_spec || v_constraint_stub || ''ck check('' ||
           p_attribute_name || v_datatype.check_expr || '')'';
       end if;
 
       if not p_null_p then
-        v_column_spec := v_column_spec || v_constraint_stub || ''_nn not null'';
+        v_column_spec := v_column_spec || v_constraint_stub || ''nn not null'';
       end if;
 
       if p_references is not null then
