You are here

function bakery_update_6003 in Bakery Single Sign-On System 6.2

Add {bakery_user}.

File

./bakery.install, line 78

Code

function bakery_update_6003() {
  $return = array();
  db_create_table($return, 'bakery_user', array(
    'description' => 'Keep track of UID on subsites, master only.',
    'fields' => array(
      'uid' => array(
        'description' => 'User ID on master site.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'slave' => array(
        'description' => 'Slave site.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'slave_uid' => array(
        'description' => 'User ID on slave site.',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'uid',
      'slave',
    ),
  ));
  return $return;
}