You are here

function masquerade_update_6005 in Masquerade 7

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

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

File

./masquerade.install, line 140
masquerade.install

Code

function masquerade_update_6005() {
  $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('masquerade_users', $schema['masquerade_users']);
}