Database changes of BT#4871

skala
Julio Montoya 12 years ago
parent 8a2be47639
commit df7587988a
  1. 5
      main/install/db_main.sql
  2. 5
      main/install/migrate-db-1.9.0-1.10.0-pre.sql

@ -514,8 +514,11 @@ CREATE TABLE IF NOT EXISTS session_rel_course_rel_user (
DROP TABLE IF EXISTS session_rel_user;
CREATE TABLE IF NOT EXISTS session_rel_user (
id_session mediumint unsigned NOT NULL default '0',
id_user mediumint unsigned NOT NULL default '0',
id_user int unsigned NOT NULL default '0',
relation_type int default 0,
moved_to int default 0,
moved_status int default 0,
moved_at datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (id_session, id_user, relation_type)
);

@ -28,6 +28,11 @@ ALTER TABLE c_lp_item_view ADD INDEX idx_c_lp_item_view_cid_lp_view_id_lp_item_i
ALTER TABLE c_tool_intro MODIFY COLUMN intro_text MEDIUMTEXT NOT NULL;
ALTER TABLE notification ADD COLUMN sender_id INT NOT NULL DEFAULT 0;
ALTER TABLE session_rel_user ADD COLUMN moved_to INT NOT NULL DEFAULT 0;
ALTER TABLE session_rel_user ADD COLUMN moved_status INT NOT NULL DEFAULT 0;
ALTER TABLE session_rel_user ADD COLUMN moved_at datetime NOT NULL default '0000-00-00 00:00:00';
-- Normal tables
UPDATE settings_current SET selected_value = '1.10.xx' WHERE variable = 'chamilo_database_version';

Loading…
Cancel
Save