You are here

function masquerade_update_6005 in Masquerade 6

Same name and namespace in other branches
  1. 7 masquerade.install \masquerade_update_6005()

Add a table storing specific user pairings a user can masquerade as.

File

./masquerade.install, line 157
masquerade.install

Code

function masquerade_update_6005() {
  $ret = array();
  $schema = array(
    'masquerade_users' => array(
      'fields' => array(
        'uid_from' => array(
          'type' => 'int',
          'not null' => true,
          'default' => 0,
          'disp-width' => 10,
        ),
        'uid_to' => array(
          'type' => 'int',
          'not null' => true,
          'default' => 0,
          'disp-width' => 10,
        ),
      ),
      'primary key' => array(
        'uid_from',
        'uid_to',
      ),
    ),
  );
  db_create_table($ret, 'masquerade_users', $schema['masquerade_users']);
  return $ret;
}