You are here

function advagg_bundler_schema in Advanced CSS/JS Aggregation 6

Implements hook_schema().

File

advagg_bundler/advagg_bundler.install, line 66
Handles AdvAgg Bundler installation and upgrade tasks.

Code

function advagg_bundler_schema() {
  $schema['advagg_bundler_selector_count'] = array(
    'description' => 'Keep track of when the files were modified.',
    'fields' => array(
      'filename' => array(
        'description' => 'Path of the file relative to Drupal webroot.',
        'type' => 'text',
        'size' => 'normal',
        'not null' => TRUE,
      ),
      'filename_md5' => array(
        'description' => 'MD5 hash of filename',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
      ),
      'selector_count' => array(
        'description' => 'CSS selector count of the file.',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'timestamp' => array(
        'description' => 'Last modified timestamp of the file.',
        'type' => 'int',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'filename_md5',
    ),
  );
  return $schema;
}