Browse Source

Alter category in tool table to allow for free categories. enum() is not an optimization of any sort anyway, and the application code already ensures we use one of these values (otherwise it doesn't appear). This is linked to the amplification of the plugins feature.

Yannick Warnier 14 years ago
parent
commit
57acb2d9f5

+ 1 - 1
main/inc/lib/add_course.lib.inc.php

@@ -722,7 +722,7 @@ function update_Db_course($course_db_name) {
         address varchar(255) default NULL,
         added_tool tinyint unsigned default 1,
         target enum('_self','_blank') NOT NULL default '_self',
-        category enum('authoring','interaction','admin') NOT NULL default 'authoring',
+        category varchar(20) not null default 'authoring',
         session_id smallint default 0,
         PRIMARY KEY (id)
         )" . $charset_clause;

+ 1 - 3
main/install/migrate-db-1.8.7-1.8.8-pre.sql

@@ -76,6 +76,4 @@ ALTER TABLE wiki_mailcue ADD session_id smallint DEFAULT 0;
 
 ALTER TABLE lp ADD COLUMN use_max_score INT DEFAULT 1;
 ALTER TABLE lp_item MODIFY COLUMN max_score FLOAT UNSIGNED DEFAULT 100;
-
-
-
+ALTER TABLE tool MODIFY COLUMN category varchar(20) not null default 'authoring';