瀏覽代碼

[svn r14093] Added field certif_min_score in gradebook_category to allow for a minimum score when granting certificates

Yannick Warnier 17 年之前
父節點
當前提交
d8ff94f5b1
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      main/install/dokeos_main.sql
  2. 1 1
      main/install/migrate-db-1.8.4-1.8.5-pre.sql

+ 1 - 0
main/install/dokeos_main.sql

@@ -847,6 +847,7 @@ CREATE TABLE gradebook_category (
   parent_id int default NULL,
   weight smallint NOT NULL,
   visible tinyint NOT NULL,
+  certif_min_score int DEFAULT NULL,
   PRIMARY KEY  (id)
 );
 CREATE TABLE gradebook_evaluation (

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

@@ -34,7 +34,7 @@ CREATE TABLE templates (id int NOT NULL auto_increment, title varchar(100) NOT N
 ALTER TABLE user ADD openid varchar(255) DEFAULT NULL;
 ALTER TABLE user ADD INDEX (openid(50));
 CREATE TABLE IF NOT EXISTS openid_association (id int NOT NULL auto_increment,idp_endpoint_uri text NOT NULL,session_type varchar(30) NOT NULL,assoc_handle text NOT NULL,assoc_type text NOT NULL,expires_in bigint NOT NULL,mac_key text NOT NULL,created bigint NOT NULL,PRIMARY KEY (id));
-CREATE TABLE gradebook_category (  id int NOT NULL auto_increment,  name text NOT NULL,  description text,  user_id int NOT NULL,  course_code varchar(40) default NULL,  parent_id int default NULL,  weight smallint NOT NULL,  visible tinyint NOT NULL,  PRIMARY KEY  (id));
+CREATE TABLE gradebook_category (  id int NOT NULL auto_increment,  name text NOT NULL,  description text,  user_id int NOT NULL,  course_code varchar(40) default NULL,  parent_id int default NULL,  weight smallint NOT NULL,  visible tinyint NOT NULL, certif_min_score int DEFAULT NULL,  PRIMARY KEY  (id));
 CREATE TABLE gradebook_evaluation (  id int unsigned NOT NULL auto_increment,  name text NOT NULL,  description text,  user_id int NOT NULL,  course_code varchar(40) default NULL,  category_id int default NULL,  date int default 0,  weight smallint NOT NULL,  max float unsigned NOT NULL,  visible tinyint NOT NULL,  PRIMARY KEY  (id));
 CREATE TABLE gradebook_link (  id int NOT NULL auto_increment,  type int NOT NULL,  ref_id int NOT NULL,  user_id int NOT NULL,  course_code varchar(40) NOT NULL,  category_id int NOT NULL,  date int default NULL,  weight smallint NOT NULL,  visible tinyint NOT NULL,  PRIMARY KEY  (id));
 CREATE TABLE gradebook_result (  id int NOT NULL auto_increment,  user_id int NOT NULL,  evaluation_id int NOT NULL,  date int NOT NULL,  score float unsigned default NULL,  PRIMARY KEY  (id));