You are here

function avatar_selection_update_7002 in Avatar Selection 7

Create avatar_selection_usage table.

File

./avatar_selection.install, line 295
The Avatar Selection module install file.

Code

function avatar_selection_update_7002() {
  $schema['avatar_selection_usage'] = array(
    'fields' => array(
      'fid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Avatar identifier.',
      ),
      'uid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Role identifier.',
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  db_create_table('avatar_selection_usage', $schema['avatar_selection_usage']);
  return t('Created avatar_selection_usage table.');
}