mirror of
https://github.com/moodle/moodle.git
synced 2025-02-25 12:33:18 +01:00
31 lines
1.0 KiB
PHP
31 lines
1.0 KiB
PHP
<?php
|
|
|
|
function data_upgrade($oldversion) {
|
|
/// This function does anything necessary to upgrade
|
|
/// older versions to match current functionality
|
|
|
|
global $CFG;
|
|
|
|
if ($oldversion < 2006011900) {
|
|
table_column("data_content", "", "content1", "text", "", "", "", "not null");
|
|
table_column("data_content", "", "content2", "text", "", "", "", "not null");
|
|
table_column("data_content", "", "content3", "text", "", "", "", "not null");
|
|
table_column("data_content", "", "content4", "text", "", "", "", "not null");
|
|
}
|
|
|
|
if ($oldversion < 2006011901) {
|
|
table_column("data", "", "approval", "integer", "4", "unsigned", "0", "not null");
|
|
table_column("data_records", "", "approved", "integer", "4", "unsigned", "0", "not null");
|
|
}
|
|
|
|
if ($oldversion < 2006020801) {
|
|
table_column("data", "", "scale", "integer");
|
|
table_column("data", "", "assessed", "integer");
|
|
table_column("data", "", "assesspublic", "integer");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
?>
|