You are here

function pmpapi_query_tools_schema in Public Media Platform API Integration 7

Implements hook_schema().

File

pmpapi_query_tools/pmpapi_query_tools.install, line 11
Install, update and uninstall functions for the PMPAPI query tools module.

Code

function pmpapi_query_tools_schema() {
  $schema['pmpapi_query_tools_queries'] = array(
    'description' => 'Saved PMP queries.',
    'fields' => array(
      'name' => array(
        'description' => 'A unique query name.',
        'type' => 'char',
        'length' => 12,
        'not null' => TRUE,
      ),
      'options' => array(
        'description' => 'Parameters for the query.',
        'type' => 'text',
        'size' => 'medium',
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  return $schema;
}