mirror of
https://github.com/moodle/moodle.git
synced 2025-07-25 00:02:18 +02:00
25 lines
809 B
PHP
25 lines
809 B
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");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
?>
|