Index: lams_tool_gmap/db/sql/table-schema.sql =================================================================== diff -u -r4125a04e76b7cafc0a7d4fe906affec3d45aa06b -rbaf5d2db55e5db78d24d07464b301c0568762607 --- lams_tool_gmap/db/sql/table-schema.sql (.../table-schema.sql) (revision 4125a04e76b7cafc0a7d4fe906affec3d45aa06b) +++ lams_tool_gmap/db/sql/table-schema.sql (.../table-schema.sql) (revision baf5d2db55e5db78d24d07464b301c0568762607) @@ -1,5 +1,6 @@ alter table tl_lagmap10_attachment drop foreign key FKBA2ECCB274028C80; alter table tl_lagmap10_marker drop foreign key FK10F2274974028C80; +alter table tl_lagmap10_marker drop foreign key FK10F22749C5F056D9; alter table tl_lagmap10_marker drop foreign key FK10F22749EF5F6920; alter table tl_lagmap10_marker drop foreign key FK10F22749529F7FD3; alter table tl_lagmap10_session drop foreign key FK519D516774028C80; @@ -11,11 +12,12 @@ drop table if exists tl_lagmap10_user; create table tl_lagmap10_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, gmap_uid bigint, primary key (uid)); create table tl_lagmap10_gmap (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, allow_edit_markers bit, show_all_markers bit, limit_markers bit, max_markers integer, allow_zoom bit, allow_terrain bit, allow_satellite bit, allow_hybrid bit, map_center_latitude double precision, map_center_longitude double precision, map_zoom integer, map_type varchar(20), primary key (uid)); -create table tl_lagmap10_marker (uid bigint not null auto_increment, longitude double precision, latitude double precision, info_window_message text, create_date datetime, update_date datetime, is_authored bit, gmap_uid bigint, title varchar(55), created_by bigint, updated_by bigint, primary key (uid)); +create table tl_lagmap10_marker (uid bigint not null auto_increment, longitude double precision, latitude double precision, info_window_message text, create_date datetime, update_date datetime, is_authored bit, gmap_uid bigint, title varchar(55), created_by bigint, updated_by bigint, gmap_session_uid bigint, primary key (uid)); create table tl_lagmap10_session (uid bigint not null auto_increment, session_end_date datetime, session_start_date datetime, status integer, session_id bigint, session_name varchar(250), gmap_uid bigint, primary key (uid)); create table tl_lagmap10_user (uid bigint not null auto_increment, user_id bigint, last_name varchar(255), login_name varchar(255), first_name varchar(255), finishedActivity bit, gmap_session_uid bigint, entry_uid bigint, primary key (uid)); alter table tl_lagmap10_attachment add index FKBA2ECCB274028C80 (gmap_uid), add constraint FKBA2ECCB274028C80 foreign key (gmap_uid) references tl_lagmap10_gmap (uid); alter table tl_lagmap10_marker add index FK10F2274974028C80 (gmap_uid), add constraint FK10F2274974028C80 foreign key (gmap_uid) references tl_lagmap10_gmap (uid); +alter table tl_lagmap10_marker add index FK10F22749C5F056D9 (gmap_session_uid), add constraint FK10F22749C5F056D9 foreign key (gmap_session_uid) references tl_lagmap10_session (uid); alter table tl_lagmap10_marker add index FK10F22749EF5F6920 (updated_by), add constraint FK10F22749EF5F6920 foreign key (updated_by) references tl_lagmap10_user (uid); alter table tl_lagmap10_marker add index FK10F22749529F7FD3 (created_by), add constraint FK10F22749529F7FD3 foreign key (created_by) references tl_lagmap10_user (uid); alter table tl_lagmap10_session add index FK519D516774028C80 (gmap_uid), add constraint FK519D516774028C80 foreign key (gmap_uid) references tl_lagmap10_gmap (uid);