You are here

campaignmonitor_registration_hold.install in Campaign Monitor 8

Install, update, and uninstall functions for the campaignmonitor_local.

File

modules/campaignmonitor_registration_hold/campaignmonitor_registration_hold.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall functions for the campaignmonitor_local.
 */

/**
 * Implements hook_schema().
 */
function campaignmonitor_registration_hold_schema() {
  $schema['campaignmonitor_registration_hold'] = [
    'description' => 'Store Campaign Monitor subscriptions before account is activated',
    'fields' => [
      'uid' => [
        'description' => 'Local user Uid',
        'type' => 'int',
        'not null' => TRUE,
      ],
      'list_id' => [
        'description' => 'Campaignmonitor List id',
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ],
      'updated' => [
        'description' => 'The date when this record was created / updated',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ],
    ],
    'primary key' => [
      'uid',
      'list_id',
    ],
  ];
  return $schema;
}

Functions