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

View File

@ -5,7 +5,7 @@
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
////////////////////////////////////////////////////////////////////////////////
$module->version = 2005032300; // The (date) version of this module
$module->version = 2005041200; // The (date) version of this module
$module->requires = 2005021600; // Requires this Moodle version
$module->cron = 0; // How often should cron check this module (seconds)?

View File

@ -203,6 +203,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;
}

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