You are here

function saml_sp_update_7207 in SAML Service Provider 7.2

Same name and namespace in other branches
  1. 7.3 saml_sp.install \saml_sp_update_7207()

remove saml_sp_request_tracking_cache table

File

./saml_sp.install, line 259
Hook_requirements for the SAML Service Provider module.

Code

function saml_sp_update_7207() {
  db_drop_table('saml_sp_request_tracking_cache');
  db_create_table('saml_sp_requests', array(
    'description' => 'temporary store for SAMl requests',
    'fields' => array(
      'id' => array(
        'description' => 'Request ID',
        'type' => 'varchar',
        'length' => '60',
        'not null' => TRUE,
        'default' => '',
      ),
      'data' => array(
        'description' => 'serialized data comtaining the information for the request',
        'type' => 'blob',
        'not null' => FALSE,
      ),
      'expires' => array(
        'description' => 'when the data needs to be removed if not done before',
        'type' => 'int',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'id',
    ),
  ));
}