示例#1
0
 /**
  * Set up our tables (question and answer)
  *
  * @see Schema
  * @see ColumnDef
  *
  * @return boolean hook value; true means continue processing, false means stop.
  */
 function onCheckSchema()
 {
     $schema = Schema::get();
     $schema->ensureTable('qna_question', QnA_Question::schemaDef());
     $schema->ensureTable('qna_answer', QnA_Answer::schemaDef());
     $schema->ensureTable('qna_vote', QnA_Vote::schemaDef());
     return true;
 }