Index: lams_tool_wookie/db/sql/table-schema.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_wookie/db/sql/table-schema.sql,v diff -u -r1.1 -r1.2 --- lams_tool_wookie/db/sql/table-schema.sql 28 Jul 2009 05:30:13 -0000 1.1 +++ lams_tool_wookie/db/sql/table-schema.sql 30 Jul 2012 18:53:55 -0000 1.2 @@ -1,16 +1,16 @@ -alter table tl_lawook10_attachment drop foreign key FK951F889ACB8ADA74; -alter table tl_lawook10_session drop foreign key FKE5C05E7FCB8ADA74; -alter table tl_lawook10_user drop foreign key FK9A39C08236E23005; +alter table tl_lawook10_attachment drop foreign key FK89B47F371913B1B; +alter table tl_lawook10_session drop foreign key FKCFBF85C671913B1B; +alter table tl_lawook10_user drop foreign key FKC7EA369B84954B4; drop table if exists tl_lawook10_attachment; drop table if exists tl_lawook10_configuration; -drop table if exists tl_lawook10_wookie; drop table if exists tl_lawook10_session; drop table if exists tl_lawook10_user; +drop table if exists tl_lawook10_wookie; create table tl_lawook10_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, wookie_uid bigint, primary key (uid)); -create table tl_lawook10_configuration (uid bigint not null auto_increment, config_key varchar(30) unique, config_value text, primary key (uid)); -create table tl_lawook10_wookie (uid bigint not null auto_increment, create_date datetime, update_date datetime, create_by bigint, title varchar(255), instructions text, run_offline bit, lock_on_finished bit, reflect_on_activity bit, allow_view_others_images bit, online_instructions text, offline_instructions text, content_in_use bit, define_later bit, tool_content_id bigint, image_file_name text, image_width bigint, image_height bigint, reflect_instructions text, primary key (uid)); -create table tl_lawook10_session (uid bigint not null auto_increment, session_end_date datetime, session_start_date datetime, status integer, session_id bigint, session_name varchar(250), wookie_uid bigint, primary key (uid)); -create table tl_lawook10_user (uid bigint not null auto_increment, user_id bigint, last_name varchar(255), login_name varchar(255), first_name varchar(255), finishedActivity bit, wookie_session_uid bigint, entry_uid bigint, image_file_name text, imageHeight bigint, imageWidth bigint, imageHidden bit, primary key (uid)); -alter table tl_lawook10_attachment add index FK951F889ACB8ADA74 (wookie_uid), add constraint FK951F889ACB8ADA74 foreign key (wookie_uid) references tl_lawook10_wookie (uid); -alter table tl_lawook10_session add index FKE5C05E7FCB8ADA74 (wookie_uid), add constraint FKE5C05E7FCB8ADA74 foreign key (wookie_uid) references tl_lawook10_wookie (uid); -alter table tl_lawook10_user add index FK9A39C08236E23005 (wookie_session_uid), add constraint FK9A39C08236E23005 foreign key (wookie_session_uid) references tl_lawook10_session (uid); +create table tl_lawook10_configuration (uid bigint not null auto_increment, config_key varchar(30) unique, config_value longtext, primary key (uid)); +create table tl_lawook10_session (uid bigint not null auto_increment, session_end_date datetime, session_start_date datetime, status integer, session_id bigint, session_name varchar(250), wookie_uid bigint, widget_shared_data_key varchar(63), widget_height integer, widget_width integer, widget_maximise bit, widget_identifier longtext, primary key (uid)); +create table tl_lawook10_user (uid bigint not null auto_increment, user_id bigint, last_name varchar(255), login_name varchar(255), first_name varchar(255), finishedActivity bit, wookie_session_uid bigint, entry_uid bigint, user_widget_url longtext, primary key (uid)); +create table tl_lawook10_wookie (uid bigint not null auto_increment, create_date datetime, update_date datetime, create_by integer, title varchar(255), instructions longtext, run_offline bit, lock_on_finished bit, reflect_on_activity bit, online_instructions longtext, offline_instructions longtext, content_in_use bit, define_later bit, tool_content_id bigint, reflect_instructions longtext, widget_author_url longtext, widget_height integer, widget_width integer, widget_maximise bit, widget_identifier longtext, primary key (uid)); +alter table tl_lawook10_attachment add index FK89B47F371913B1B (wookie_uid), add constraint FK89B47F371913B1B foreign key (wookie_uid) references tl_lawook10_wookie (uid); +alter table tl_lawook10_session add index FKCFBF85C671913B1B (wookie_uid), add constraint FKCFBF85C671913B1B foreign key (wookie_uid) references tl_lawook10_wookie (uid); +alter table tl_lawook10_user add index FKC7EA369B84954B4 (wookie_session_uid), add constraint FKC7EA369B84954B4 foreign key (wookie_session_uid) references tl_lawook10_session (uid);