Add setting add_teachers_to_sessions_courses

1.10.x
Julio Montoya 10 years ago
parent ec68a8d668
commit 126cc18d39
  1. 3
      main/install/database.sql
  2. 6
      main/install/migrate-db-1.9.0-1.10.0-pre.sql

@ -161,6 +161,7 @@ CREATE TABLE IF NOT EXISTS course (
registration_code varchar(255) NOT NULL default '',
legal TEXT NOT NULL,
activate_legal INT NOT NULL DEFAULT 0,
add_teachers_to_sessions_courses tinyint NOT NULL default 0,
PRIMARY KEY (id),
UNIQUE KEY code (code)
);
@ -4728,5 +4729,5 @@ CREATE TABLE c_attendance_calendar_rel_group (
-- Version
LOCK TABLES settings_current WRITE;
UPDATE settings_current SET selected_value = '1.10.0.25' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.0.26' WHERE variable = 'chamilo_database_version';
UNLOCK TABLES;

@ -48,7 +48,6 @@ ALTER TABLE track_e_links ADD COLUMN c_id int NOT NULL;
ALTER TABLE track_e_course_access ADD COLUMN c_id int NOT NULL;
ALTER TABLE track_e_online ADD COLUMN c_id int NOT NULL;
ALTER TABLE track_e_attempt ADD COLUMN c_id int NOT NULL;
ALTER TABLE track_e_default ADD COLUMN session_id int NOT NULL;
DELETE FROM settings_current WHERE variable = 'wcag_anysurfer_public_pages';
@ -75,10 +74,11 @@ UPDATE user SET expiration_date = NULL WHERE expiration_date = '0000-00-00 00:00
ALTER TABLE user MODIFY COLUMN chatcall_date datetime default NULL;
ALTER TABLE user MODIFY COLUMN chatcall_text varchar(50) default NULL;
ALTER TABLE user MODIFY COLUMN chatcall_user_id int unsigned default '0';
ALTER TABLE user MODIFY COLUMN expiration_date datetime default NULL;
ALTER TABLE user MODIFY COLUMN registration_date datetime NOT NULL;
ALTER TABLE course ADD COLUMN add_teachers_to_sessions_courses tinyint NOT NULL default 0;
DELETE FROM settings_options WHERE variable = 'show_glossary_in_extra_tools';
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_extra_tools', 'none', 'None');
@ -111,4 +111,4 @@ CREATE TABLE IF NOT EXISTS c_student_publication_comment (id INT PRIMARY KEY NOT
CREATE TABLE IF NOT EXISTS c_attendance_calendar_rel_group (id int NOT NULL auto_increment PRIMARY KEY, c_id INT NOT NULL, group_id INT NOT NULL, calendar_id INT NOT NULL);
-- Do not move this query
UPDATE settings_current SET selected_value = '1.10.0.25' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.0.26' WHERE variable = 'chamilo_database_version';

Loading…
Cancel
Save