Commit 8893f339 authored by Liang Ding's avatar Liang Ding

#202

还需要在升级程序中添加 Preference 列。
parent ba7dc7e6
......@@ -58,6 +58,8 @@ import org.json.JSONObject;
* @since 0.3.1
*/
@RequestProcessor
// TODO: 060
// 1. Add column Preference.feedOutputCnt
public final class UpgradeProcessor {
/**
......
{
"description": "Description of repository structures, for generation (DDL: http://en.wikipedia.org/wiki/Data_Definition_Language) of the relational database table and persistence validation.",
"version": "1.0.0.8, Feb 22, 2013",
"version": "1.0.0.9, Mar 5, 2013",
"authors": ["Liang Ding"],
"since": "0.4.0",
......@@ -263,6 +263,11 @@
"length": 20,
"nullable": true
},
{
"name": "feedOutputCnt",
"type": "int",
"nullable": true
},
{
"name": "articleListDisplayCount",
"type": "int",
......
This diff is collapsed.
......@@ -2722,7 +2722,7 @@ admin.register["link-list"] = {
*
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.1.6, Aug 26, 2012
* @version 1.0.1.7, Mar 5, 2013
*/
/* preference 相关操作 */
......@@ -2775,7 +2775,6 @@ admin.preference = {
$("#randomArticlesDisplayCount").val(preference.randomArticlesDisplayCount);
$("#keyOfSolo").val(preference.keyOfSolo);
preference.enableArticleUpdateHint ? $("#enableArticleUpdateHint").attr("checked", "checked") : $("#enableArticleUpdateHint").removeAttr("checked");
preference.allowVisitDraftViaPermalink ? $("#allowVisitDraftViaPermalink").attr("checked", "checked") : $("allowVisitDraftViaPermalink").removeAttr("checked");
admin.preference.locale = preference.localeString;
......@@ -2818,8 +2817,9 @@ admin.preference = {
$("#articleListDisplay").val(preference.articleListStyle);
// Editor Type
$("#editorType").val(preference.editorType);
// Feed output mode
// Feed output
$("#feedOutputMode").val(preference.feedOutputMode);
$("#feedOutputCnt").val(preference.feedOutputCnt);
// Commentable
preference.commentable ? $("#commentable").attr("checked", "checked") : $("commentable").removeAttr("checked");
......@@ -2924,6 +2924,7 @@ admin.preference = {
"articleListStyle": $("#articleListDisplay").val(),
"editorType": $("#editorType").val(),
"feedOutputMode": $("#feedOutputMode").val(),
"feedOutputCnt": $("#feedOutputCnt").val(),
"commentable": $("#commentable").prop("checked")
}
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment