移动js目录,增加markdown库

This commit is contained in:
joyqi
2013-10-18 15:16:16 +08:00
parent 440f799ccd
commit 23e0d2a82a
19 changed files with 6917 additions and 18 deletions
+33
View File
@@ -955,4 +955,37 @@ Typecho_Date::setTimezoneOffset($options->timezone);
{
Typecho_Widget::widget('Widget_Themes_Edit', NULL, 'change=' . $options->theme, false)->action();
}
/**
* 升级至13.10.18
*
* @param mixed $db
* @param mixed $options
* @static
* @access public
* @return void
*/
public static function v0_9r13_10_18($db, $options)
{
// 增加markdown
$db->query($db->insert('table.options')
->rows(array('name' => 'markdown', 'user' => 0, 'value' => 0)));
// 更新原来被搞乱的草稿
$db->query($db->update('table.contents')
->rows(array(
'type' => 'post_draft',
'status' => 'publish'
))
->where('type = ? AND status = ?', 'post', 'draft'));
$db->query($db->update('table.contents')
->rows(array(
'type' => 'page_draft',
'status' => 'publish'
))
->where('type = ? AND status = ?', 'page', 'draft'));
}
}