[svn r14868] Added access_condition field in survey and quiz tables to allow for access restrictions based on Dokeos user data

skala
Yannick Warnier 17 years ago
parent 949659960a
commit 2ff892a2ff
  1. 2
      main/inc/lib/add_course.lib.inc.php
  2. 2
      main/install/migrate-db-1.8.4-1.8.5-pre.sql

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

@ -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;
Loading…
Cancel
Save