You are here

function manager_content_export_yaml_schema in Content Export YAML 8

Implements hook_schema().

See also

hook_schema()

File

modules/manager_content_export_yaml/manager_content_export_yaml.install, line 15

Code

function manager_content_export_yaml_schema() {
  $schema['content_export_yaml'] = array(
    'description' => 'The table for storing content_export_yaml',
    'fields' => array(
      'number' => array(
        'description' => 'The primary identifier',
        'type' => 'serial',
        'not null' => TRUE,
        'unsigned' => TRUE,
      ),
      'entity_id' => array(
        'description' => 'The  identifier for drupal  nid or term label or uid .',
        'type' => 'varchar',
        'length' => '250',
        'not null' => TRUE,
      ),
      'label' => array(
        'description' => 'label',
        'type' => 'varchar',
        'length' => '250',
        'not null' => TRUE,
      ),
      'entity_type' => array(
        'description' => 'Entity type node or user or taxonomy_term',
        'type' => 'varchar',
        'length' => '250',
        'not null' => TRUE,
      ),
      'bundle' => array(
        'description' => 'Bundle',
        'type' => 'varchar',
        'length' => '250',
        'not null' => TRUE,
      ),
      'file' => array(
        'description' => 'File ',
        'type' => 'varchar',
        'length' => '350',
        'not null' => TRUE,
      ),
      'imported' => array(
        'description' => 'Status ',
        'type' => 'varchar',
        'length' => '50',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'number',
    ),
  );
  return $schema;
}