mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
24 lines
807 B
PHP
24 lines
807 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", "longtext", "", "", "", "not null");
|
|
table_column("data_content", "", "content2", "longtext", "", "", "", "not null");
|
|
table_column("data_content", "", "content3", "longtext", "", "", "", "not null");
|
|
table_column("data_content", "", "content4", "longtext", "", "", "", "not null");
|
|
}
|
|
|
|
if ($oldversion < 2006011901) {
|
|
table_column("data", "", "approval", "tinyint", "4", "", "", "not null");
|
|
table_column("data_records", "", "approved", "tinyint", "4", "", "", "not null");
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
?>
|