Update converts all wiki-like descriptions to Markdown.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user