Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…than indexes.
  • Loading branch information...
commit 6b4f18622d9bf62b985c26f33f60dbdde13afaa1 1 parent b2fcca2
ethem authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 enrol/authorize/db/postgres7.php
View
5 enrol/authorize/db/postgres7.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.