Commit aad899e4 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add missing index to view_access table


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent efca9925
......@@ -701,6 +701,7 @@
</KEYS>
<INDEXES>
<INDEX NAME="tokenix" UNIQUE="false" FIELDS="token"/>
<INDEX NAME="accesstypeix" UNIQUE="false" FIELDS="accesstype"/>
</INDEXES>
</TABLE>
<TABLE NAME="view_visit">
......
......@@ -2235,5 +2235,12 @@ function xmldb_core_upgrade($oldversion=0) {
add_field($table, $field);
}
if ($oldversion < 2010122700) {
$table = new XMLDBTable('view_access');
$index = new XMLDBIndex('accesstypeix');
$index->setAttributes(XMLDB_INDEX_NOTUNIQUE, array('accesstype'));
add_index($table, $index);
}
return $status;
}
......@@ -28,7 +28,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2010122201;
$config->version = 2010122700;
$config->release = '1.4.0dev';
$config->minupgradefrom = 2008040200;
$config->minupgraderelease = '1.0.0 (release tag 1.0.0_RELEASE)';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment