Commit 6813eef4 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't attempt to run the main stats upgrade more than once


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 11f34e65
......@@ -1370,7 +1370,9 @@ function xmldb_core_upgrade($oldversion=0) {
");
}
if ($oldversion < 2010031800) {
if ($oldversion < 2010031800 && !table_exists(new XMLDBTable('site_data'))) {
// Upgrades for admin stats pages
// Table for collection of historical stats
$table = new XMLDBTable('site_data');
$table->addFieldInfo('ctime', XMLDB_TYPE_DATETIME, null, XMLDB_NOTNULL);
......
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