Skip to content

Commit

Permalink
Add missing criteria field to skill table - refs BT#9082
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Feb 10, 2015
1 parent 40beb58 commit a64fc1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main/install/db_main.sql
Expand Up @@ -884,7 +884,7 @@ VALUES
('tool_visible_by_default_at_creation','forums','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Forums', 1),
('tool_visible_by_default_at_creation','quiz','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Quiz', 1),
('tool_visible_by_default_at_creation','gradebook','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Gradebook', 1),
('chamilo_database_version', NULL, 'textfield',NULL, '1.10.0.6','DatabaseVersion','', NULL, NULL, 0);
('chamilo_database_version', NULL, 'textfield',NULL, '1.10.0.7','DatabaseVersion','', NULL, NULL, 0);
UNLOCK TABLES;
/*!40000 ALTER TABLE settings_current ENABLE KEYS */;

Expand Down Expand Up @@ -2852,6 +2852,7 @@ CREATE TABLE IF NOT EXISTS skill (
description TEXT NOT NULL,
access_url_id int NOT NULL,
icon varchar(255) NOT NULL,
criteria text DEFAULT '',
PRIMARY KEY (id)
);

Expand Down
4 changes: 3 additions & 1 deletion main/install/migrate-db-1.9.0-1.10.0-pre.sql
Expand Up @@ -32,8 +32,10 @@ ALTER TABLE session_rel_user ADD COLUMN duration int;
CREATE TABLE course_field_options (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, field_id INT NOT NULL, option_value TEXT, option_display_text VARCHAR(64), option_order INT, tms DATETIME);
CREATE TABLE session_field_options (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, field_id INT NOT NULL, option_value TEXT, option_display_text VARCHAR(64), option_order INT, tms DATETIME);

ALTER TABLE skill ADD COLUMN criteria text DEFAULT '';

-- Do not move this query
UPDATE settings_current SET selected_value = '1.10.0.6' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.0.7' WHERE variable = 'chamilo_database_version';

-- xxCOURSExx

Expand Down

0 comments on commit a64fc1b

Please sign in to comment.