Index: lams_tool_spreadsheet/db/sql/table-schema.sql
===================================================================
RCS file: /usr/local/cvsroot/lams_tool_spreadsheet/db/sql/table-schema.sql,v
diff -u -r1.2 -r1.3
--- lams_tool_spreadsheet/db/sql/table-schema.sql	11 Jul 2008 08:19:58 -0000	1.2
+++ lams_tool_spreadsheet/db/sql/table-schema.sql	30 Jul 2012 18:54:02 -0000	1.3
@@ -1,26 +1,26 @@
-alter table tl_lasprd10_attachment drop foreign key FK_NEW_2065267438_1E7009430E79035;
-alter table tl_lasprd10_spreadsheet drop foreign key FK_NEW_2065267438_89093BF758092FB;
-alter table tl_lasprd10_session drop foreign key FK_NEW_2065267438_24AA78C530E79035;
-alter table tl_lasprd10_user drop foreign key FK_NEW_2065267438_30113BFC30E79035;
-alter table tl_lasprd10_user drop foreign key FK_NEW_2065267438_30113BFCEC0D3147;
-alter table tl_lasprd10_user drop foreign key FK_NEW_2065267438_63195BC941F9365D;
-alter table tl_lasprd10_user_modified_spreadsheet drop foreign key FK_tl_lasprd10_user_modified_spreadsheet_1;
+alter table tl_lasprd10_attachment drop foreign key FK880769383F87A469;
+alter table tl_lasprd10_session drop foreign key FK3B9F72A13F87A469;
+alter table tl_lasprd10_spreadsheet drop foreign key FK26864E57BAA77371;
+alter table tl_lasprd10_user drop foreign key FK4E45EFA0332FF511;
+alter table tl_lasprd10_user drop foreign key FK4E45EFA03F87A469;
+alter table tl_lasprd10_user drop foreign key FK4E45EFA042839493;
+alter table tl_lasprd10_user_modified_spreadsheet drop foreign key FK632B0695C8FF0BC6;
 drop table if exists tl_lasprd10_attachment;
-drop table if exists tl_lasprd10_user_modified_spreadsheet;
-drop table if exists tl_lasprd10_spreadsheet_mark;
-drop table if exists tl_lasprd10_spreadsheet;
 drop table if exists tl_lasprd10_session;
+drop table if exists tl_lasprd10_spreadsheet;
+drop table if exists tl_lasprd10_spreadsheet_mark;
 drop table if exists tl_lasprd10_user;
+drop table if exists tl_lasprd10_user_modified_spreadsheet;
 create table tl_lasprd10_attachment (uid bigint not null auto_increment, file_version_id bigint, file_type varchar(255), file_name varchar(255), file_uuid bigint, create_date datetime, spreadsheet_uid bigint, primary key (uid));
-create table tl_lasprd10_user_modified_spreadsheet (uid bigint, user_modified_spreadsheet text, mark_id bigint, primary key (uid));
-create table tl_lasprd10_spreadsheet_mark (uid bigint, marks varchar(255), comments text, date_marks_released datetime, primary key (uid));
-create table tl_lasprd10_spreadsheet (uid bigint not null auto_increment, create_date datetime, update_date datetime, create_by bigint, title varchar(255), run_offline bit, is_learner_allowed_to_save bit, is_marking_enabled bit, lock_on_finished bit, instructions text, code text, online_instructions text, offline_instructions text, content_in_use bit, define_later bit, content_id bigint unique, reflect_instructions varchar(255), reflect_on_activity bit, primary key (uid));
 create table tl_lasprd10_session (uid bigint not null auto_increment, session_end_date datetime, session_start_date datetime, status integer, spreadsheet_uid bigint, session_id bigint, session_name varchar(250), primary key (uid));
-create table tl_lasprd10_user (uid bigint not null auto_increment, user_id bigint, last_name varchar(255), first_name varchar(255), login_name varchar(255), session_uid bigint, spreadsheet_uid bigint, session_finished bit, user_modified_spreadsheet_uid bigint, primary key (uid));
-alter table tl_lasprd10_attachment add index FK_NEW_2065267438_1E7009430E79035 (spreadsheet_uid), add constraint FK_NEW_2065267438_1E7009430E79035 foreign key (spreadsheet_uid) references tl_lasprd10_spreadsheet (uid);
-alter table tl_lasprd10_spreadsheet add index FK_NEW_2065267438_89093BF758092FB (create_by), add constraint FK_NEW_2065267438_89093BF758092FB foreign key (create_by) references tl_lasprd10_user (uid);
-alter table tl_lasprd10_session add index FK_NEW_2065267438_24AA78C530E79035 (spreadsheet_uid), add constraint FK_NEW_2065267438_24AA78C530E79035 foreign key (spreadsheet_uid) references tl_lasprd10_spreadsheet (uid);
-alter table tl_lasprd10_user add index FK_NEW_2065267438_30113BFC30E79035 (spreadsheet_uid), add constraint FK_NEW_2065267438_30113BFC30E79035 foreign key (spreadsheet_uid) references tl_lasprd10_spreadsheet (uid);
-alter table tl_lasprd10_user add index FK_NEW_2065267438_30113BFCEC0D3147 (session_uid), add constraint FK_NEW_2065267438_30113BFCEC0D3147 foreign key (session_uid) references tl_lasprd10_session (uid);
-alter table tl_lasprd10_user add index FK_NEW_2065267438_63195BC941F9365D (user_modified_spreadsheet_uid), add constraint FK_NEW_2065267438_63195BC941F9365D foreign key (user_modified_spreadsheet_uid) references tl_lasprd10_user_modified_spreadsheet (uid);
-alter table tl_lasprd10_user_modified_spreadsheet add index FK_tl_lasprd10_user_modified_spreadsheet_1 (mark_id), add constraint FK_tl_lasprd10_user_modified_spreadsheet_1 foreign key (mark_id) references tl_lasprd10_spreadsheet_mark (uid);
\ No newline at end of file
+create table tl_lasprd10_spreadsheet (uid bigint not null auto_increment, create_date datetime, update_date datetime, create_by bigint, title varchar(255), run_offline bit, is_learner_allowed_to_save bit, is_marking_enabled bit, lock_on_finished bit, instructions longtext, code longtext, online_instructions longtext, offline_instructions longtext, content_in_use bit, define_later bit, content_id bigint unique, reflect_instructions varchar(255), reflect_on_activity bit, primary key (uid));
+create table tl_lasprd10_spreadsheet_mark (uid bigint not null auto_increment, marks varchar(255), comments longtext, date_marks_released datetime, primary key (uid));
+create table tl_lasprd10_user (uid bigint not null auto_increment, user_id bigint, last_name varchar(255), first_name varchar(255), login_name varchar(255), session_uid bigint, spreadsheet_uid bigint, user_modified_spreadsheet_uid bigint, session_finished bit, primary key (uid));
+create table tl_lasprd10_user_modified_spreadsheet (uid bigint not null auto_increment, user_modified_spreadsheet longtext, mark_id bigint, primary key (uid));
+alter table tl_lasprd10_attachment add index FK880769383F87A469 (spreadsheet_uid), add constraint FK880769383F87A469 foreign key (spreadsheet_uid) references tl_lasprd10_spreadsheet (uid);
+alter table tl_lasprd10_session add index FK3B9F72A13F87A469 (spreadsheet_uid), add constraint FK3B9F72A13F87A469 foreign key (spreadsheet_uid) references tl_lasprd10_spreadsheet (uid);
+alter table tl_lasprd10_spreadsheet add index FK26864E57BAA77371 (create_by), add constraint FK26864E57BAA77371 foreign key (create_by) references tl_lasprd10_user (uid);
+alter table tl_lasprd10_user add index FK4E45EFA0332FF511 (session_uid), add constraint FK4E45EFA0332FF511 foreign key (session_uid) references tl_lasprd10_session (uid);
+alter table tl_lasprd10_user add index FK4E45EFA03F87A469 (spreadsheet_uid), add constraint FK4E45EFA03F87A469 foreign key (spreadsheet_uid) references tl_lasprd10_spreadsheet (uid);
+alter table tl_lasprd10_user add index FK4E45EFA042839493 (user_modified_spreadsheet_uid), add constraint FK4E45EFA042839493 foreign key (user_modified_spreadsheet_uid) references tl_lasprd10_user_modified_spreadsheet (uid);
+alter table tl_lasprd10_user_modified_spreadsheet add index FK632B0695C8FF0BC6 (mark_id), add constraint FK632B0695C8FF0BC6 foreign key (mark_id) references tl_lasprd10_spreadsheet_mark (uid);
