You are here

patchinfo.install in PatchInfo 8

Same filename and directory in other branches
  1. 8.2 patchinfo.install
  2. 7 patchinfo.install

Install, update, and uninstall functions for the Patch Info module.

File

patchinfo.install
View 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

Namesort descending Description
patchinfo_schema Implements hook_schema().