function feeds_tamper_schema in Feeds Tamper 6
Same name and namespace in other branches
- 7 feeds_tamper.install \feeds_tamper_schema()
Implementation of hook_schema().
File
- ./
feeds_tamper.install, line 18 - Schema definitions install/update/uninstall hooks.
Code
function feeds_tamper_schema() {
$schema = array();
$schema['feeds_tamper'] = array(
'description' => 'Table storing tamper instances.',
'export' => array(
'key' => 'id',
'identifier' => 'feeds_tamper',
// Exports will be as $tamper_instalce
'default hook' => 'feeds_tamper_default',
// Function hook name.
'api' => array(
'owner' => 'feeds_tamper',
'api' => 'feeds_tamper_default',
// Base name for api include files.
'minimum_version' => 2,
'current_version' => 2,
),
),
'fields' => array(
'id' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Id of the feeds tamper instance.',
),
'importer' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Id of the feeds importer.',
),
'source' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'The source field of the importer.',
),
'plugin_id' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
'description' => 'Id of the tamper plugin.',
),
'settings' => array(
'type' => 'text',
'size' => 'big',
'description' => 'A serialized array of options for a Feeds Tamper plugin.',
'serialize' => TRUE,
),
'weight' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'description' => 'The weight of a plugin instance. Plugins are executed in order.',
),
'description' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Description of this plugin.',
),
),
'primary key' => array(
'id',
),
'indexes' => array(
'importer' => array(
'importer',
),
),
);
return $schema;
}