You are here

miniorange_2fa.install in Google Authenticator / 2 Factor Authentication - 2FA 8

Same filename and directory in other branches
  1. 8.2 miniorange_2fa.install

File

miniorange_2fa.install
View source
<?php

/*
 * No need of Uninstall hook.
 */

/*
 * Implements hook_schema().
 *
 * Defines the database tables used by this module.
 *
 * @see hook_schema()
 *
 * @ingroup lotus
 */
function miniorange_2fa_schema() {
  $schema['UserAuthenticationType'] = array(
    'description' => 'Stores example user ID and his authentication type.',
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'description' => " user's id",
      ),
      'configured_auth_methods' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'authentication type of user.',
      ),
      'miniorange_registered_email' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'miniorange registered email.',
      ),
      'activated_auth_methods' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => 'OUT OF BAND EMAIL',
        'description' => 'activated authentication type of user.',
      ),
    ),
  );
  return $schema;
}

Functions