Index: openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql,v
diff -u -r1.34 -r1.35
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql	5 Mar 2011 01:47:04 -0000	1.34
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql	5 Mar 2011 22:35:23 -0000	1.35
@@ -950,12 +950,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
