Update wiki-like text format to Markdown.

This commit is contained in:
thepurpleblob
2005-04-12 07:53:02 +00:00
parent 5d48f310a5
commit 59787e1894
3 changed files with 13 additions and 1 deletions
+6
View File
@@ -196,6 +196,12 @@ function workshop_upgrade($oldversion) {
table_column('workshop_assessments', '', 'teachergraded', 'INTEGER', '4', 'UNSIGNED', '0', 'NOT NULL', 'gradinggrade');
}
if ($oldversion < 2005041200) { // replace wiki-like with markdown
include_once( "$CFG->dirroot/lib/wiki_to_markdown.php" );
$wtm = new WikiToMarkdown();
$wtm->update( 'workshop','description','format' );
}
return true;
}