Browse Source

[svn r15735] Increased the session size in the database to cope with large learning paths

Yannick Warnier 16 years ago
parent
commit
5b4eed47df
2 changed files with 2 additions and 1 deletions
  1. 1 1
      main/install/dokeos_main.sql
  2. 1 0
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

+ 1 - 1
main/install/dokeos_main.sql

@@ -318,7 +318,7 @@ CREATE TABLE php_session (
   session_name varchar(10) NOT NULL default '',
   session_time int(11) NOT NULL default '0',
   session_start int(11) NOT NULL default '0',
-  session_value text NOT NULL,
+  session_value mediumtext NOT NULL,
   PRIMARY KEY  (session_id)
 );
 

+ 1 - 0
main/install/migrate-db-1.8.5-1.8.6-pre.sql

@@ -13,6 +13,7 @@
 -- This first part is for the main database
 -- xxMAINxx
 INSERT INTO settings_current (variable, subkey,type,category,selected_value,title,comment,scope,subkeytext)VALUES ('registration', 'phone', 'textfield', 'User', 'false', 'RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment', NULL, 'Phone');
+ALTER TABLE php_session CHANGE session_value session_value MEDIUMTEXT NOT NULL;
 
 -- xxSTATSxx