Browse Source

[svn r18406] Adding the "field_filter" column into the "user_fields" table see FS#3462

Julio Montoya 16 years ago
parent
commit
12f8679472
2 changed files with 3 additions and 0 deletions
  1. 1 0
      main/install/dokeos_main.sql
  2. 2 0
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

+ 1 - 0
main/install/dokeos_main.sql

@@ -1013,6 +1013,7 @@ CREATE TABLE user_field (
 	field_order int,
 	field_visible tinyint default 0,
 	field_changeable tinyint default 0,
+	field_filter tinyint default 0,
 	tms	TIMESTAMP,	
 	PRIMARY KEY(id)
 );

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

@@ -107,6 +107,7 @@ INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_soci
 INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_students_to_browse_courses', NULL, 'radio', 'Platform', 'true', 'AllowStudentsToBrowseCoursesTitle', 'AllowStudentsToBrowseCoursesComment', NULL, NULL, 1);
 INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_students_to_browse_courses', 'true', 'Yes');
 INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_students_to_browse_courses', 'false', 'No');
+ALTER TABLE user_field ADD field_filter tinyint default 0;
 
 -- xxSTATSxx
 ALTER TABLE track_e_exercices ADD status varchar(20) NOT NULL default '';
@@ -222,3 +223,4 @@ INSERT INTO user_friend_relation_type(id,title)VALUES(5,'Enemy');
 INSERT INTO user_friend_relation_type(id,title)VALUES(6,'Deleted');
 ALTER TABLE lp ADD session_id int unsigned not null default 0;
 ALTER TABLE document ADD session_id int unsigned not null default 0;
+