diff --git a/og.install b/og.install index 720cd62..2de6c65 100644 --- a/og.install +++ b/og.install @@ -96,7 +96,7 @@ function og_schema_info() { ), 'permission' => array( 'type' => 'varchar', - 'length' => 64, + 'length' => 128, 'not null' => TRUE, 'default' => '', 'description' => 'A single permission granted to the role identified by rid.', @@ -416,7 +416,7 @@ function og_schema_7000_info() { ), 'permission' => array( 'type' => 'varchar', - 'length' => 64, + 'length' => 128, 'not null' => TRUE, 'default' => '', 'description' => 'A single permission granted to the role identified by rid.', @@ -1002,4 +1002,17 @@ function og_update_7201(&$sandbox) { // Finished processing. $sandbox['#finished'] = 1; } -} \ No newline at end of file +} + +/** + * Extend the length of permission field in og_role_permission. + */ +function og_update_7202() { + $schema = og_schema_7000_info(); + if (db_field_exists('og_role_permission', 'permission')) { + db_change_field('og_role_permission', 'permission', 'permission', $schema[ + 'og_role_permission']['fields']['permission']); + } + + return t('Updated column definition for {og_role_permission} table.'); +}