diff --git a/main/inc/lib/add_course.lib.inc.php b/main/inc/lib/add_course.lib.inc.php index 6caa7dd605..deabace527 100644 --- a/main/inc/lib/add_course.lib.inc.php +++ b/main/inc/lib/add_course.lib.inc.php @@ -579,6 +579,7 @@ function update_Db_course($courseDbName) random smallint(6) NOT NULL default 0, active tinyint NOT NULL default 0, results_disabled TINYINT UNSIGNED NOT NULL DEFAULT 0, + access_condition TEXT DEFAULT NULL, PRIMARY KEY (id) )"; api_sql_query($sql, __FILE__, __LINE__); @@ -1341,6 +1342,7 @@ function update_Db_course($courseDbName) invite_mail text NOT NULL, reminder_mail text NOT NULL, anonymous enum('0','1') NOT NULL default '0', + access_condition TEXT DEFAULT NULL, PRIMARY KEY (survey_id) )"; diff --git a/main/install/migrate-db-1.8.4-1.8.5-pre.sql b/main/install/migrate-db-1.8.4-1.8.5-pre.sql index f401768cc7..518546648b 100644 --- a/main/install/migrate-db-1.8.4-1.8.5-pre.sql +++ b/main/install/migrate-db-1.8.4-1.8.5-pre.sql @@ -120,3 +120,5 @@ CREATE TABLE forum_attachment (id int NOT NULL auto_increment, path varchar(255) ALTER TABLE group_category ADD forum_state TINYINT DEFAULT 0 AFTER announcements_state; UPDATE tool SET category='interaction', admin='0', visibility='1' WHERE name='survey'; CREATE TABLE forum_notification (user_id int(11) , forum_id varchar(11), thread_id varchar(11), post_id varchar(11), KEY user_id (user_id), KEY forum_id (forum_id)); +ALTER TABLE quiz ADD access_condition text DEFAULT NULL; +ALTER TABLE survey ADD access_condition text DEFAULT NULL; \ No newline at end of file