Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
6813eef4
Commit
6813eef4
authored
Mar 18, 2010
by
Richard Mansfield
Browse files
Don't attempt to run the main stats upgrade more than once
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
11f34e65
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
6813eef4
...
@@ -1370,7 +1370,9 @@ function xmldb_core_upgrade($oldversion=0) {
...
@@ -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 for collection of historical stats
$table
=
new
XMLDBTable
(
'site_data'
);
$table
=
new
XMLDBTable
(
'site_data'
);
$table
->
addFieldInfo
(
'ctime'
,
XMLDB_TYPE_DATETIME
,
null
,
XMLDB_NOTNULL
);
$table
->
addFieldInfo
(
'ctime'
,
XMLDB_TYPE_DATETIME
,
null
,
XMLDB_NOTNULL
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment