Index: openacs-4/contrib/packages/survey/sql/postgresql/survey-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/survey/sql/postgresql/Attic/survey-create.sql,v
diff -u -N -r1.2 -r1.3
--- openacs-4/contrib/packages/survey/sql/postgresql/survey-create.sql	26 Jan 2004 15:39:41 -0000	1.2
+++ openacs-4/contrib/packages/survey/sql/postgresql/survey-create.sql	7 Feb 2004 11:25:51 -0000	1.3
@@ -312,22 +312,24 @@
 create index survey_q_active_p on survey_questions(active_p);
 
 create table survey_block_sections (
-	block_section_id        integer primary key
+	block_section_id        integer primary key,
 	section_id              integer
                                 constraint survey_b_q_section_id_fk
                                 references survey_sections,
-	answer_description	varchar(400)
+	answer_description      text
 );
 
 create table survey_block_questions (
-	block_section_id 	references survey_block_sections,
+	block_section_id 	integer 
+                                constraint survey_b_q_section_id_fk
+                                references survey_block_sections,
 	choice_id 		integer
 				constraint survey_b_q_choice_id_nn
 				not null,
-	label 			varchar(200),
-	sort_order		integer
-				constraint survey_b_q_sort_order_nn
-				not null
+	label 			text,
+        sort_order              integer
+                                constraint survey_b_q_sort_order_nn
+                                not null
 );
 
 create sequence survey_block_section_id_seq;
@@ -353,7 +355,7 @@
                         references survey_questions
                         on delete cascade,
         -- human readable 
-        label           varchar(500)
+        label           text
 			constraint survey_qc_label_nn
                         not null,
         -- might be useful for averaging or whatever, generally null
