Browse files

Some indexes were added in 15_STABLE. So, don't show a warning messag…

…e if index already exists.
  • Loading branch information...
1 parent 5723bc6 commit 4440d7a432de2ae15d335fc83347d53384803121 ethem committed Apr 5, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/authorize/db/mysql.php
View
4 enrol/authorize/db/mysql.php
@@ -25,8 +25,8 @@ function enrol_authorize_upgrade($oldversion=0) {
table_column('enrol_authorize', 'courseid', 'courseid', 'integer', '10', 'unsigned', '0', 'not null');
table_column('enrol_authorize', 'userid', 'userid', 'integer', '10', 'unsigned', '0', 'not null');
// Add some indexes for speed.
- execute_sql(" ALTER TABLE `{$CFG->prefix}enrol_authorize` ADD INDEX courseid(courseid) ");
- execute_sql(" ALTER TABLE `{$CFG->prefix}enrol_authorize` ADD INDEX userid(userid) ");
+ execute_sql("ALTER TABLE `{$CFG->prefix}enrol_authorize` ADD INDEX courseid(courseid)", false);
+ execute_sql("ALTER TABLE `{$CFG->prefix}enrol_authorize` ADD INDEX userid(userid)", false);
}
if ($oldversion < 2005071602) {

0 comments on commit 4440d7a

Please sign in to comment.