Index: lams_tool_notebook/db/sql/table-schema.sql =================================================================== RCS file: /usr/local/cvsroot/lams_tool_notebook/db/sql/table-schema.sql,v diff -u -r1.1 -r1.2 --- lams_tool_notebook/db/sql/table-schema.sql 20 Jul 2006 01:11:10 -0000 1.1 +++ lams_tool_notebook/db/sql/table-schema.sql 20 Jul 2006 04:13:18 -0000 1.2 @@ -1,6 +1,6 @@ -alter table tl_lantbk11_attachment drop foreign key FK2464A040C50BB56A; -alter table tl_lantbk11_session drop foreign key FK447CD899C50BB56A; -alter table tl_lantbk11_user drop foreign key FKEA7B0CA888E2F833; +alter table tl_lantbk11_attachment drop foreign key FK12090F57FC940906; +alter table tl_lantbk11_session drop foreign key FKB7C198E2FC940906; +alter table tl_lantbk11_user drop foreign key FKCB8A58FFA3B0FADF; drop table if exists tl_lantbk11_attachment; drop table if exists tl_lantbk11_notebook; drop table if exists tl_lantbk11_session; @@ -9,6 +9,6 @@ create table tl_lantbk11_notebook (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, online_instructions text, offline_instructions text, content_in_use bit, define_later bit, tool_content_id bigint, primary key (uid)); create table tl_lantbk11_session (uid bigint not null auto_increment, session_end_date datetime, session_start_date datetime, status integer, session_id bigint, session_name varchar(250), notebook_uid bigint, primary key (uid)); create table tl_lantbk11_user (uid bigint not null auto_increment, user_id bigint, last_name varchar(255), login_name varchar(255), first_name varchar(255), finishedActivity bit, notebook_session_uid bigint, primary key (uid)); -alter table tl_lantbk11_attachment add index FK2464A040C50BB56A (notebook_uid), add constraint FK2464A040C50BB56A foreign key (notebook_uid) references tl_lantbk11_notebook (uid); -alter table tl_lantbk11_session add index FK447CD899C50BB56A (notebook_uid), add constraint FK447CD899C50BB56A foreign key (notebook_uid) references tl_lantbk11_notebook (uid); -alter table tl_lantbk11_user add index FKEA7B0CA888E2F833 (notebook_session_uid), add constraint FKEA7B0CA888E2F833 foreign key (notebook_session_uid) references tl_lantbk11_session (uid); +alter table tl_lantbk11_attachment add index FK12090F57FC940906 (notebook_uid), add constraint FK12090F57FC940906 foreign key (notebook_uid) references tl_lantbk11_notebook (uid); +alter table tl_lantbk11_session add index FKB7C198E2FC940906 (notebook_uid), add constraint FKB7C198E2FC940906 foreign key (notebook_uid) references tl_lantbk11_notebook (uid); +alter table tl_lantbk11_user add index FKCB8A58FFA3B0FADF (notebook_session_uid), add constraint FKCB8A58FFA3B0FADF foreign key (notebook_session_uid) references tl_lantbk11_session (uid);