From 13c6f348979f93ea08281c7f1b7be0711b2cd67b Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 9 Feb 2009 21:14:04 +0100 Subject: [PATCH] [svn r18373] Adding the session_id into the "documents" and "lp" table see FS#3634 --- main/inc/lib/add_course.lib.inc.php | 5 +++-- main/install/migrate-db-1.8.5-1.8.6-pre.sql | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/add_course.lib.inc.php b/main/inc/lib/add_course.lib.inc.php index a70fd068e0..0068a7e596 100644 --- a/main/inc/lib/add_course.lib.inc.php +++ b/main/inc/lib/add_course.lib.inc.php @@ -783,6 +783,7 @@ function update_Db_course($courseDbName) filetype set('file','folder') NOT NULL default 'file', size int NOT NULL default 0, readonly TINYINT UNSIGNED NOT NULL, + session_id int UNSIGNED NOT NULL, PRIMARY KEY (`id`) )"; api_sql_query($sql, __FILE__, __LINE__); @@ -1140,8 +1141,8 @@ function update_Db_course($courseDbName) "debug tinyint unsigned not null default 0," . //stores the default behaviour regarding items re-initialisation when viewed a second time after success "theme varchar(255) not null default '', " . //stores the theme of the LP "preview_image varchar(255) not null default '', " . //stores the theme of the LP - "author varchar(255) not null default '' " . //stores the theme of the LP - + "author varchar(255) not null default '', " . //stores the theme of the LP + "session_id int unsigned not null " . //the session_id ")"; if(!api_sql_query($sql, __FILE__, __LINE__)) { diff --git a/main/install/migrate-db-1.8.5-1.8.6-pre.sql b/main/install/migrate-db-1.8.5-1.8.6-pre.sql index bd8606dee7..16596cf159 100644 --- a/main/install/migrate-db-1.8.5-1.8.6-pre.sql +++ b/main/install/migrate-db-1.8.5-1.8.6-pre.sql @@ -219,4 +219,6 @@ INSERT INTO user_friend_relation_type(id,title)VALUES(2,'Parent'); INSERT INTO user_friend_relation_type(id,title)VALUES(3,'Friend'); INSERT INTO user_friend_relation_type(id,title)VALUES(4,'GoodFriend'); INSERT INTO user_friend_relation_type(id,title)VALUES(5,'Enemy'); -INSERT INTO user_friend_relation_type(id,title)VALUES(6,'Deleted'); \ No newline at end of file +INSERT INTO user_friend_relation_type(id,title)VALUES(6,'Deleted'); +ALTER TABLE lp ADD session_id session_id int unsigned not null; +ALTER TABLE document ADD session_id session_id int unsigned not null;