patchinfo.install in PatchInfo 8
Same filename and directory in other branches
Install, update, and uninstall functions for the Patch Info module.
File
patchinfo.installView source
<?php
/**
* @file
* Install, update, and uninstall functions for the Patch Info module.
*/
/**
* Implements hook_schema().
*/
function patchinfo_schema() {
$schema = [];
$schema['patchinfo'] = [
'description' => 'Information on patches in modules',
'fields' => [
'module' => [
'description' => 'Machine readable name of module',
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
],
'id' => [
'description' => 'Index of patch in module',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
],
'url' => [
'description' => 'Patch URL',
'type' => 'text',
'not null' => TRUE,
],
'info' => [
'description' => 'Additional information',
'type' => 'text',
'not null' => TRUE,
],
],
'primary key' => [
'module',
'id',
],
];
return $schema;
}
Functions
Name | Description |
---|---|
patchinfo_schema | Implements hook_schema(). |