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
moodle
moodle
Commits
67f68027
Commit
67f68027
authored
Jan 13, 2016
by
Dan Poltawski
Browse files
MDL-50851 upgrade: dan *REALLY* *REALLY* sucks at integrating
parent
74a088bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/db/upgrade.php
View file @
67f68027
...
...
@@ -4609,7 +4609,7 @@ function xmldb_main_upgrade($oldversion) {
// Moodle v3.0.0 release upgrade line.
// Put any upgrade step following this.
if
(
$oldversion
<
2016011
1
00.0
0
)
{
if
(
$oldversion
<
2016011
3
00.0
1
)
{
// This is a big upgrade script. We create new table tag_coll and the field
// tag.tagcollid pointing to it.
...
...
@@ -4654,10 +4654,10 @@ function xmldb_main_upgrade($oldversion) {
}
// Main savepoint reached.
upgrade_main_savepoint
(
true
,
2016011
1
00.0
0
);
upgrade_main_savepoint
(
true
,
2016011
3
00.0
1
);
}
if
(
$oldversion
<
2016011
1
00.02
)
{
if
(
$oldversion
<
2016011
3
00.02
)
{
// Create a default tag collection if not exists and update the field tag.tagcollid to point to it.
if
(
!
$tcid
=
$DB
->
get_field_sql
(
'SELECT id FROM {tag_coll} ORDER BY isdefault DESC, sortorder, id'
,
null
,
IGNORE_MULTIPLE
))
{
...
...
@@ -4694,10 +4694,10 @@ function xmldb_main_upgrade($oldversion) {
}
// Main savepoint reached.
upgrade_main_savepoint
(
true
,
2016011
1
00.02
);
upgrade_main_savepoint
(
true
,
2016011
3
00.02
);
}
if
(
$oldversion
<
2016011
1
00.03
)
{
if
(
$oldversion
<
2016011
3
00.03
)
{
// Define table tag_area to be created.
$table
=
new
xmldb_table
(
'tag_area'
);
...
...
@@ -4724,10 +4724,10 @@ function xmldb_main_upgrade($oldversion) {
}
// Main savepoint reached.
upgrade_main_savepoint
(
true
,
2016011
1
00.03
);
upgrade_main_savepoint
(
true
,
2016011
3
00.03
);
}
if
(
$oldversion
<
2016011
1
00.
12
)
{
if
(
$oldversion
<
2016011
3
00.
04
)
{
// Define index itemtype-itemid-tagid-tiuserid (unique) to be dropped form tag_instance.
$table
=
new
xmldb_table
(
'tag_instance'
);
...
...
@@ -4740,10 +4740,10 @@ function xmldb_main_upgrade($oldversion) {
}
// Main savepoint reached.
upgrade_main_savepoint
(
true
,
2016011
1
00.
12
);
upgrade_main_savepoint
(
true
,
2016011
3
00.
04
);
}
if
(
$oldversion
<
2016011
1
00.
13
)
{
if
(
$oldversion
<
2016011
3
00.
05
)
{
$DB
->
execute
(
"UPDATE
{
tag_instance
}
SET component = ? WHERE component IS NULL"
,
array
(
''
));
...
...
@@ -4762,10 +4762,10 @@ function xmldb_main_upgrade($oldversion) {
$dbman
->
change_field_type
(
$table
,
$field
);
// Main savepoint reached.
upgrade_main_savepoint
(
true
,
2016011
1
00.
13
);
upgrade_main_savepoint
(
true
,
2016011
3
00.
05
);
}
if
(
$oldversion
<
2016011
1
00.
14
)
{
if
(
$oldversion
<
2016011
3
00.
06
)
{
// Define index taggeditem (unique) to be added to tag_instance.
$table
=
new
xmldb_table
(
'tag_instance'
);
...
...
@@ -4777,10 +4777,10 @@ function xmldb_main_upgrade($oldversion) {
}
// Main savepoint reached.
upgrade_main_savepoint
(
true
,
2016011
1
00.
14
);
upgrade_main_savepoint
(
true
,
2016011
3
00.
06
);
}
if
(
$oldversion
<
2016011
1
00.
15
)
{
if
(
$oldversion
<
2016011
3
00.
07
)
{
// Define index taglookup (not unique) to be added to tag_instance.
$table
=
new
xmldb_table
(
'tag_instance'
);
...
...
@@ -4792,10 +4792,10 @@ function xmldb_main_upgrade($oldversion) {
}
// Main savepoint reached.
upgrade_main_savepoint
(
true
,
2016011
1
00.
15
);
upgrade_main_savepoint
(
true
,
2016011
3
00.
07
);
}
if
(
$oldversion
<
2016011
200
.00
)
{
if
(
$oldversion
<
2016011
301
.00
)
{
// Force uninstall of deleted tool.
if
(
!
file_exists
(
"
$CFG->dirroot
/webservice/amf"
))
{
...
...
@@ -4804,7 +4804,7 @@ function xmldb_main_upgrade($oldversion) {
// Remove all other associated config.
unset_all_config_for_plugin
(
'webservice_amf'
);
}
upgrade_main_savepoint
(
true
,
2016011
200
.00
);
upgrade_main_savepoint
(
true
,
2016011
301
.00
);
}
return
true
;
...
...
version.php
View file @
67f68027
...
...
@@ -29,7 +29,7 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$version
=
2016011
2
01.00
;
// YYYYMMDD = weekly release date of this DEV branch.
$version
=
2016011
3
01.00
;
// YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.
...
...
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