Put back tjhunt's changes. Invalid merge. Tabs aren't more important than indexes.

This commit is contained in:
ethem 2006-05-18 07:13:43 +00:00
parent b2fcca2761
commit 6b4f18622d

View File

@ -115,6 +115,11 @@ function enrol_authorize_upgrade($oldversion=0) {
table_column('enrol_authorize', 'transid', 'transid', 'integer', '10', 'unsigned', '0', 'not null');
}
if ($oldversion < 2006050400) { // Create transid indexes for backup & restore speed.
execute_sql("CREATE INDEX {$CFG->prefix}enrol_authorize_transid_idx ON {$CFG->prefix}enrol_authorize(transid);", false);
execute_sql("CREATE INDEX {$CFG->prefix}enrol_authorize_refunds_transid_idx ON {$CFG->prefix}enrol_authorize_refunds(transid);", false);
}
return $result;
}