You are here

function backup_migrate_prune_schema in Backup and migrate prune 7.2

Same name and namespace in other branches
  1. 7 backup_migrate_prune.install \backup_migrate_prune_schema()

Implementation of hook_schema().

File

./backup_migrate_prune.install, line 21
Install hooks for Backup and Migrate.

Code

function backup_migrate_prune_schema() {
  $schema['backup_migrate_gardener'] = array(
    'description' => 'Contains the gardener information.',
    'fields' => array(
      'gardener_id' => array(
        'description' => 'The primary identifier for a gardener.',
        'type' => 'serial',
        'not null' => TRUE,
      ),
      'name' => array(
        'description' => 'The name of the gardener.',
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
      ),
      'settings' => array(
        'description' => 'Settings for the gardener.',
        'type' => 'text',
        'not null' => TRUE,
        'serialize' => TRUE,
        'serialized default' => 'a:0:{}',
      ),
      'created' => array(
        'description' => 'Creation timestamp.',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'destination_id' => array(
        'description' => 'The primary identifier for a profile.',
        'type' => 'varchar',
        'length' => '32',
        'not null' => TRUE,
        'default' => '0',
      ),
    ),
    'primary key' => array(
      'gardener_id',
    ),
  );
  return $schema;
}