You are here

function og_migrate_schema in Organic groups 7

Implements hook_schema().

File

og_migrate/og_migrate.install, line 12
Install, update, and uninstall functions for the Organic groups migrate module.

Code

function og_migrate_schema() {
  $schema = array();
  $schema['og_migrate'] = array(
    'description' => 'Store information related to the organic groups migration.',
    'fields' => array(
      'plugin' => array(
        'description' => "The plugin name.",
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'status' => array(
        'description' => "The plugin's status. Not executed, executed or failed.",
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
        'size' => 'small',
      ),
    ),
    'primary key' => array(
      'plugin',
    ),
  );
  return $schema;
}