function privatemsg_update_7200 in Privatemsg 7.2
Add the {pm_settings} table.
File
- ./
privatemsg.install, line 366 - Install file for privatemsg.module
Code
function privatemsg_update_7200() {
$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('pm_setting', $table);
}