You are here

function aes_schema in AES encryption 7

Same name and namespace in other branches
  1. 5 aes.install \aes_schema()
  2. 6 aes.install \aes_schema()

Implements hook_schema().

File

./aes.install, line 98
Install/uninstall related functions.

Code

function aes_schema() {
  $schema['aes_passwords'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'pass' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}