You are here

function privatemsg_update_6205 in Privatemsg 6.2

Add the {pm_settings} table.

File

./privatemsg.install, line 697
Install file for privatemsg.module

Code

function privatemsg_update_6205() {
  $ret = array();
  $table = array(
    'description' => '{pm_setting} holds user specific (including defaults) settings',
    'fields' => array(
      'id' => array(
        'description' => 'Together with type, associates a setting to a user, role, global default, ...',
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
      ),
      'type' => array(
        'description' => 'Together with id, associates a setting to a user, role, global default, ...',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'setting' => array(
        'description' => 'The name of a setting',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
      'value' => array(
        'description' => 'Holds the value of a given setting',
        'type' => 'int',
      ),
    ),
    'primary key' => array(
      'id',
      'type',
      'setting',
    ),
  );
  db_create_table($ret, 'pm_setting', $table);
  return $ret;
}