[svn r18373] Adding the session_id into the "documents" and "lp" table see FS#3634

skala
Julio Montoya 17 years ago
parent 07e6d7281d
commit 13c6f34897
  1. 5
      main/inc/lib/add_course.lib.inc.php
  2. 4
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

@ -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__))
{

@ -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');
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;

Loading…
Cancel
Save