You are here

function forum_access_update_2 in Forum Access 6

Same name and namespace in other branches
  1. 5 forum_access.install \forum_access_update_2()

Add a priority column (will probably not be used until D6).

File

./forum_access.install, line 172
Install, update and uninstall functions for the forum_access module.

Code

function forum_access_update_2() {
  $ret = array();
  db_add_field($ret, 'forum_access', 'priority', array(
    'description' => 'The priority of this grant.',
    'type' => 'int',
    'size' => 'small',
    'not null' => TRUE,
    'default' => 0,
  ));
  return $ret;
}