You are here

function oauth2_server_update_7100 in OAuth2 Server 7

Adds the {oauth2_server_jti} table, {oauth2_server_client}.public_key field.

File

./oauth2_server.install, line 378

Code

function oauth2_server_update_7100() {
  $schema = oauth2_server_schema();
  db_create_table('oauth2_server_jti', $schema['oauth2_server_jti']);
  $spec = array(
    'description' => 'The public key.',
    'type' => 'text',
    'not null' => TRUE,
    'initial' => TRUE,
  );
  db_add_field('oauth2_server_client', 'public_key', $spec);
}