mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
FIxes bug 1669 and some defunct resource types
This commit is contained in:
parent
da67ed1bc5
commit
357c0f9f57
3 changed files with 10 additions and 2 deletions
|
@ -48,7 +48,10 @@ function resource_upgrade($oldversion) {
|
|||
modify_database("", "UPDATE prefix_resource SET type='directory' WHERE type='9';");
|
||||
}
|
||||
|
||||
|
||||
if ($oldversion < 2004072600) {
|
||||
modify_database("", "UPDATE prefix_resource SET type='file' WHERE type='url';");
|
||||
modify_database("", "UPDATE prefix_resource SET type='file' WHERE type='program';");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -41,6 +41,11 @@ function resource_upgrade($oldversion) {
|
|||
modify_database("", "UPDATE prefix_resource SET type='text', options='3' WHERE type='8';");
|
||||
modify_database("", "UPDATE prefix_resource SET type='directory' WHERE type='9';");
|
||||
}
|
||||
|
||||
if ($oldversion < 2004072600) {
|
||||
modify_database("", "UPDATE prefix_resource SET type='file' WHERE type='url';");
|
||||
modify_database("", "UPDATE prefix_resource SET type='file' WHERE type='program';");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue