many fixes and expands and module expansions

This commit is contained in:
Dennis Eichhorn 2021-04-04 17:10:52 +02:00
parent 68dc5223fd
commit 8cbcf6ae37
2 changed files with 63 additions and 1 deletions

View File

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

View File

@ -25,7 +25,7 @@ echo $this->getData('nav')->render();
<section class="portlet">
<div class="portlet-head"><?= $this->printHtml($question->name); ?></div>
<div class="portlet-body">
<?= $this->printHtml($question->question); ?>
<?= $question->question; ?>
</div>
<div class="inner">
<?php if ($question->createdBy->image !== null) : ?>