function riddler_schema in Captcha Riddler 7
Implementation of hook_schema().
File
- ./
riddler.install, line 29 - Install, update and uninstall functions for the Riddler module.
Code
function riddler_schema() {
// Table for positions and types of the challenges.
$schema['riddler_questions'] = array(
'description' => 'This table stores questions and answers for the riddler module.',
'fields' => array(
'qid' => array(
'description' => 'Question ID.',
'type' => 'serial',
'not null' => TRUE,
),
'question' => array(
'description' => 'The question.',
'type' => 'varchar',
'length' => 255,
),
'answer' => array(
'description' => 'The answer',
'type' => 'varchar',
'length' => 255,
),
),
'primary key' => array(
'qid',
),
);
return $schema;
}