function minifyjs_schema in Minify JS 8.2
Same name and namespace in other branches
- 8 minifyjs.install \minifyjs_schema()
- 7 minifyjs.install \minifyjs_schema()
Implements hook_schema().
File
- ./
minifyjs.install, line 11 - Install, update and uninstall functions for the Minify JS module.
Code
function minifyjs_schema() {
$schema['minifyjs_file'] = [
'description' => 'Store a list of all javascript files and their minified status.',
'fields' => [
'fid' => [
'description' => 'The file id of the javascript file.',
'not null' => TRUE,
'type' => 'serial',
'unsigned' => TRUE,
],
'uri' => [
'description' => 'Original file uri.',
'length' => 191,
'not null' => TRUE,
'type' => 'varchar',
],
'size' => [
'description' => 'Original file size.',
'not null' => TRUE,
'type' => 'int',
'unsigned' => TRUE,
],
'modified' => [
'description' => 'Original file last modified date.',
'not null' => TRUE,
'type' => 'int',
'unsigned' => TRUE,
],
'minified_uri' => [
'default' => '',
'description' => 'Minified file uri.',
'length' => 255,
'type' => 'varchar',
],
'minified_size' => [
'default' => 0,
'description' => 'Minified file size.',
'type' => 'int',
'unsigned' => TRUE,
],
'minified_modified' => [
'default' => 0,
'description' => 'Minified file last modified date.',
'type' => 'int',
'unsigned' => TRUE,
],
],
'unique keys' => [
'uri' => [
'uri',
],
],
'primary key' => [
'fid',
],
];
return $schema;
}