function patchinfo_schema in PatchInfo 7
Same name and namespace in other branches
- 8.2 patchinfo.install \patchinfo_schema()
- 8 patchinfo.install \patchinfo_schema()
Implements hook_schema().
File
- ./
patchinfo.install, line 11 - Install, update, and uninstall functions for the Patch Info module.
Code
function patchinfo_schema() {
$schema = array();
$schema['patchinfo'] = array(
'description' => 'Information on patches in modules',
'fields' => array(
'module' => array(
'description' => 'Machine readable name of module',
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
),
'id' => array(
'description' => 'Index of patch in module',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'url' => array(
'description' => 'Patch URL',
'type' => 'text',
'not null' => TRUE,
),
'info' => array(
'description' => 'Additional information',
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array(
'module',
'id',
),
);
return $schema;
}