Added a new field "module" to the post table to indicate what type of module

each entry is
This commit is contained in:
moodler
2006-03-20 07:13:21 +00:00
parent 490201c75c
commit 112d0ebf82
6 changed files with 21 additions and 3 deletions
+6
View File
@@ -1471,6 +1471,12 @@ function main_upgrade($oldversion=0) {
}
}
if ($oldversion < 2006032000) {
table_column('post','','module','varchar','20','','','not null', 'id');
modify_database('',"ALTER TABLE prefix_post ADD INDEX post_module_idx (module);");
modify_database('',"UPDATE prefix_post SET module = 'blog';");
}
return $result;
}