You are here

function backup_migrate_prune_schema in Backup and migrate prune 7

Same name and namespace in other branches
  1. 7.2 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(
    'fields' => array(
      'gardener_id' => array(
        'type' => 'serial',
        'description' => 'The primary identifier for a gardener.',
      ),
      '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,
        'serialized default' => 'a:0:{}',
        'default' => 0,
      ),
      'destination_id' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '0',
        'description' => 'The primary identifier for a profile.',
      ),
    ),
    'primary key' => array(
      'gardener_id',
    ),
  );
  return $schema;
}