You are here

function captcha_schema in CAPTCHA 6

Same name and namespace in other branches
  1. 8 captcha.install \captcha_schema()
  2. 6.2 captcha.install \captcha_schema()
  3. 7 captcha.install \captcha_schema()

Implementation of hook_schema().

File

./captcha.install, line 6

Code

function captcha_schema() {
  $schema['captcha_points'] = array(
    'fields' => array(
      'form_id' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'module' => array(
        'type' => 'varchar',
        'length' => 64,
      ),
      'type' => array(
        'type' => 'varchar',
        'length' => 64,
      ),
    ),
    'primary key' => array(
      'form_id',
    ),
  );
  return $schema;
}