From 8cbcf6ae3768f2d3666904ceabcac4cc0082dd1b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 4 Apr 2021 17:10:52 +0200 Subject: [PATCH] many fixes and expands and module expansions --- Admin/Install/db.json | 62 +++++++++++++++++++++++++++++++ Theme/Backend/qa-question.tpl.php | 2 +- 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/Admin/Install/db.json b/Admin/Install/db.json index 5f26c32..773248b 100755 --- a/Admin/Install/db.json +++ b/Admin/Install/db.json @@ -109,6 +109,37 @@ } } }, + "qa_question_vote": { + "name": "qa_question_vote", + "fields": { + "qa_question_vote_id": { + "name": "qa_question_vote_id", + "type": "INT", + "null": false, + "primary": true, + "autoincrement": true + }, + "qa_question_vote_src": { + "name": "qa_question_vote_src", + "type": "INT", + "null": false, + "foreignTable": "qa_question", + "foreignKey": "qa_question_id" + }, + "qa_question_vote_dst": { + "name": "qa_question_vote_dst", + "type": "INT", + "null": false, + "foreignTable": "account", + "foreignKey": "account_id" + }, + "qa_question_vote_score": { + "name": "qa_question_vote_score", + "type": "TINYINT", + "null": false + } + } + }, "qa_tag": { "name": "qa_tag", "fields": { @@ -187,5 +218,36 @@ "foreignKey": "qa_question_id" } } + }, + "qa_answer_vote": { + "name": "qa_answer_vote", + "fields": { + "qa_answer_vote_id": { + "name": "qa_answer_vote_id", + "type": "INT", + "null": false, + "primary": true, + "autoincrement": true + }, + "qa_answer_vote_src": { + "name": "qa_answer_vote_src", + "type": "INT", + "null": false, + "foreignTable": "qa_answer", + "foreignKey": "qa_answer_id" + }, + "qa_answer_vote_dst": { + "name": "qa_answer_vote_dst", + "type": "INT", + "null": false, + "foreignTable": "account", + "foreignKey": "account_id" + }, + "qa_answer_vote_score": { + "name": "qa_answer_vote_score", + "type": "TINYINT", + "null": false + } + } } } \ No newline at end of file diff --git a/Theme/Backend/qa-question.tpl.php b/Theme/Backend/qa-question.tpl.php index df2a9d8..951bef0 100755 --- a/Theme/Backend/qa-question.tpl.php +++ b/Theme/Backend/qa-question.tpl.php @@ -25,7 +25,7 @@ echo $this->getData('nav')->render();
printHtml($question->name); ?>
- printHtml($question->question); ?> + question; ?>
createdBy->image !== null) : ?>