You are here

function og_update_7103 in Organic groups 7

Extend the length of permission field in og_role_permission.

File

./og.install, line 772
Install, update, and uninstall functions for the Organic groups module.

Code

function og_update_7103() {
  $column = array(
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
    'default' => '',
    'description' => 'A single permission granted to the role identified by rid.',
  );
  if (db_field_exists('og_role_permission', 'permission')) {
    db_change_field('og_role_permission', 'permission', 'permission', $column);
  }
  return t('Updated column definition for {og_role_permission} table.');
}