moodle/mod/data/db/mysql.php
2006-02-03 08:11:36 +00:00

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;
}
?>