You are here

function ga_login_schema in Google Authenticator login 6

Same name and namespace in other branches
  1. 7 ga_login.install \ga_login_schema()

Implements hook_schema().

File

./ga_login.install, line 12
Install, update and uninstall functions for the ga_login module.

Code

function ga_login_schema() {
  $schema['ga_login'] = array(
    'description' => 'Table that contains ga specific data.',
    'fields' => array(
      'name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'description' => 'Unique user name + site name.',
      ),
      'keydata' => array(
        'type' => 'text',
        'not null' => FALSE,
        'size' => 'big',
        'description' => 'Key data for GA.',
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  return $schema;
}