|
|
|
@ -1410,7 +1410,10 @@ function create_course_tables($course_db_name = null) { |
|
|
|
|
|
|
|
|
|
$sql = "ALTER TABLE `$TABLELPITEM` ADD INDEX (lp_id)"; |
|
|
|
|
Database::query($sql); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*$sql = "ALTER TABLE $TABLELPITEM ADD INDEX idx_c_lp_item_cid_lp_id (c_id, lp_id)"; |
|
|
|
|
Database::query($sql);*/ |
|
|
|
|
|
|
|
|
|
$sql = "CREATE TABLE IF NOT EXISTS `$TABLELPITEMVIEW` ( |
|
|
|
|
$add_to_all_tables |
|
|
|
|
" . |
|
|
|
@ -1436,7 +1439,11 @@ function create_course_tables($course_db_name = null) { |
|
|
|
|
|
|
|
|
|
$sql = "ALTER TABLE `$TABLELPITEMVIEW` ADD INDEX (lp_view_id) "; |
|
|
|
|
Database::query($sql); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*$sql = "ALTER TABLE $TABLELPITEMVIEW ADD INDEX idx_c_lp_item_view_cid_lp_view_id_lp_item_id (c_id, lp_view_id, lp_item_id) "; |
|
|
|
|
Database::query($sql);*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$sql = "CREATE TABLE IF NOT EXISTS `$TABLELPIVINTERACTION`( |
|
|
|
|
$add_to_all_tables" . |
|
|
|
|
"id bigint unsigned auto_increment," . |
|
|
|
|