You are here

acsf_variables.install in Acquia Cloud Site Factory Connector 8.2

Same filename and directory in other branches
  1. 8 acsf_variables/acsf_variables.install

Install related functions.

File

acsf_variables/acsf_variables.install
View source
<?php

/**
 * @file
 * Install related functions.
 */

/**
 * Implements hook_schema().
 */
function acsf_variables_schema() {
  $schema = [];
  $schema['acsf_variables'] = [
    'description' => 'A centralized storage mechanism for all ACSF sensitive variables that can be easily scrubbed.',
    'fields' => [
      'name' => [
        'description' => 'The name of the variable.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ],
      'group_name' => [
        'description' => 'The group of the variable.',
        'type' => 'varchar',
        'length' => 128,
        'not null' => FALSE,
      ],
      'value' => [
        'description' => 'The value of the variable.',
        'type' => 'blob',
        'not null' => TRUE,
        'size' => 'big',
      ],
    ],
    'primary key' => [
      'name',
    ],
    'indexes' => [
      'group_name' => [
        'group_name',
      ],
    ],
  ];
  return $schema;
}

Functions

Namesort descending Description
acsf_variables_schema Implements hook_schema().