DUVar 6.x-1.x-dev
Drupal User Variables
duvar.schema File Reference

Go to the source code of this file.

Functions

 duvar_schema_0 ()

Detailed Description

Provide versionable schema functions for use with the .install file.

The _0 function will always provide the current version of the schema and is used in the hook_install and hook_uninstall implmentations. The hook_update_N implementation will use the dmail_schema_N of the same N number should it need the schema of its version.

Definition in file duvar.schema.


Function Documentation

duvar_schema_0 ( )

The current schema version.

User specific variable values.

Definition at line 16 of file duvar.schema.

Referenced by duvar_schema().

                          {
  $schema['duvariables'] = array(
    'description' => 'User specific variables storage.'
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'size' => 'big',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'name' => array(
        'type' => 'char',
        'length' => 32,
        'not null' => TRUE,
      ),
      'value' => array(
        'type' => 'blob',
      ),
    ),
    'primary_key' => array('uid', 'name'),
  );
  return $schema;
}
All Files Functions