Update converts all wiki-like descriptions to Markdown.

This commit is contained in:
thepurpleblob
2005-04-11 12:43:35 +00:00
parent fa33cfe99e
commit 6fd831d6c4
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -117,6 +117,12 @@ function assignment_upgrade($oldversion) {
table_column('assignment', '', 'emailteachers', 'integer', '2', 'unsigned', 0, 'not null', 'resubmit');
}
if ($oldversion < 2005041100) { // replace wiki-like with markdown
include_once( "$CFG->dirroot/lib/wiki_to_markdown.php" );
$wtm = new WikiToMarkdown();
$wtm->update( 'assignment','description','format' );
}
return true;
}
+6
View File
@@ -115,6 +115,12 @@ function assignment_upgrade($oldversion) {
table_column('assignment', '', 'emailteachers', 'integer', '2', 'unsigned', 0, 'not null', 'resubmit');
}
if ($oldversion < 2005041100) { // replace wiki-like with markdown
include_once( "$CFG->dirroot/lib/wiki_to_markdown.php" );
$wtm = new WikiToMarkdown();
$wtm->update( 'assignment','description','format' );
}
return true;
}