|
@@ -72,6 +72,9 @@ ALTER TABLE c_lp_item_view ADD INDEX idx_c_lp_item_view_cid_lp_view_id_lp_item_i
|
|
|
ALTER TABLE c_item_property ADD INDEX idx_itemprop_id_tool (c_id, tool(8));
|
|
|
ALTER TABLE c_tool_intro MODIFY COLUMN intro_text MEDIUMTEXT NOT NULL;
|
|
|
|
|
|
+ALTER TABLE c_quiz_answer ADD INDEX idx_quiz_answer_c_q (c_id, question_id);
|
|
|
+CREATE TABLE c_quiz_order( id int unsigned NOT NULL auto_increment, c_id int unsigned NOT NULL, session_id int unsigned NOT NULL, exercise_id int NOT NULL, exercise_order INT NOT NULL, PRIMARY KEY (id));
|
|
|
+
|
|
|
ALTER TABLE c_quiz_question_rel_category ADD COLUMN id int unsigned NOT NULL;
|
|
|
ALTER TABLE c_quiz_question_rel_category DROP PRIMARY KEY;
|
|
|
ALTER TABLE c_quiz_question_rel_category ADD PRIMARY KEY (id, c_id, question_id);
|
|
@@ -100,10 +103,9 @@ INSERT INTO branch_transaction_status VALUES (1, 'To be executed'), (2, 'Execute
|
|
|
|
|
|
CREATE TABLE branch_transaction (id bigint unsigned not null AUTO_INCREMENT, transaction_id bigint unsigned, branch_id int unsigned not null default 0, action char(20), item_id char(36), orig_id char(36), dest_id char(36), info char(20), status_id tinyint not null default 0, time_insert datetime NOT NULL DEFAULT '0000-00-00 00:00:00', time_update datetime NOT NULL DEFAULT '0000-00-00 00:00:00', message VARCHAR(255) default '' , PRIMARY KEY (id, transaction_id, branch_id));
|
|
|
|
|
|
-ALTER TABLE c_quiz_answer ADD INDEX idx_quiz_answer_c_q (c_id, question_id);
|
|
|
+
|
|
|
ALTER TABLE settings_current ADD INDEX idx_settings_current_au_cat (access_url, category(5));
|
|
|
|
|
|
-CREATE TABLE c_quiz_order( id int unsigned NOT NULL auto_increment, c_id int unsigned NOT NULL, session_id int unsigned NOT NULL, exercise_id int NOT NULL, exercise_order INT NOT NULL, PRIMARY KEY (id));
|
|
|
|
|
|
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('session_page_enabled', NULL, 'radio', 'Session', 'true', 'SessionPageEnabledTitle', 'SessionPageEnabledComment', NULL, NULL, 1);
|
|
|
INSERT INTO settings_options (variable, value, display_text) VALUES ('session_page_enabled', 'true', 'Yes');
|