You are here

function acquia_purge_schema in Acquia Purge 6

Implements hook_schema().

File

./acquia_purge.install, line 51
Installation file for the Acquia Purge module.

Code

function acquia_purge_schema() {
  $schema = array();
  $schema['ap_queue'] = array(
    'description' => 'Stores paths to be purged in a queue table.',
    'fields' => array(
      'item_id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Primary Key: Unique item ID.',
      ),
      'path' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'The path to be purged.',
      ),
    ),
    'primary key' => array(
      'item_id',
    ),
  );
  return $schema;
}