Skip to content
GitLab
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
176b380d
Commit
176b380d
authored
Nov 23, 2007
by
Nigel McNie
Browse files
Re-ordered some version numbers in the upgrade from 0.8 to 0.9 so they are linear.
parent
bec2ed46
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
176b380d
...
...
@@ -172,14 +172,14 @@ function xmldb_core_upgrade($oldversion=0) {
}
// Add the 'blockinstancecommit' event type
if
(
$oldversion
<
200708220
3
)
{
if
(
$oldversion
<
200708220
1
)
{
$event
=
(
object
)
array
(
'name'
=>
'blockinstancecommit'
,
);
ensure_record_exists
(
'event_type'
,
$event
,
$event
);
}
if
(
$oldversion
<
200708220
1
)
{
if
(
$oldversion
<
200708220
2
)
{
// Rename the community tables to group - mysql version.
// This is really quite hacky. You can't rename columns with a foreign
// key on them, so you have to drop the key, rename the column, re-add
...
...
@@ -213,7 +213,7 @@ function xmldb_core_upgrade($oldversion=0) {
}
// VIEW REWORK MIGRATION
if
(
$oldversion
<
200710020
0
)
{
if
(
$oldversion
<
200710020
3
)
{
$table
=
new
XMLDBTable
(
'view_layout'
);
$table
->
addFieldInfo
(
'id'
,
XMLDB_TYPE_INTEGER
,
10
,
XMLDB_UNSIGNED
,
XMLDB_NOTNULL
,
XMLDB_SEQUENCE
,
null
,
null
,
null
);
...
...
@@ -388,7 +388,7 @@ function xmldb_core_upgrade($oldversion=0) {
// Move files in dataroot into an 'originals' directory, and remove any
// cached images
if
(
$oldversion
<
200708220
2
)
{
if
(
$oldversion
<
200708220
4
)
{
require
(
'file.php'
);
foreach
(
array
(
'artefact/file'
,
'artefact/internal/profileicons'
)
as
$dir
)
{
$datadir
=
get_config
(
'dataroot'
)
.
$dir
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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