| 1 |
<?php
|
| 2 |
// $Id: feedapi_mapper.install,v 1.1.4.2 2009/06/27 09:28:18 aronnovak Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_schema().
|
| 6 |
*/
|
| 7 |
function feedapi_mapper_schema() {
|
| 8 |
$schema['feedapi_mapper'] = array(
|
| 9 |
'description' => 'Stores data for the feedapi mapper',
|
| 10 |
'fields' => array(
|
| 11 |
'nid' => array(
|
| 12 |
'description' => 'The primary identifier for the feed.',
|
| 13 |
'type' => 'int',
|
| 14 |
'unsigned' => TRUE,
|
| 15 |
'not null' => TRUE),
|
| 16 |
'mapping' => array(
|
| 17 |
'type' => 'text',
|
| 18 |
'size' => 'big',
|
| 19 |
'not null' => TRUE),
|
| 20 |
),
|
| 21 |
'primary key' => array('nid'),
|
| 22 |
);
|
| 23 |
return $schema;
|
| 24 |
}
|
| 25 |
|
| 26 |
/**
|
| 27 |
* Implementation of hook_install().
|
| 28 |
*/
|
| 29 |
function feedapi_mapper_install() {
|
| 30 |
drupal_install_schema('feedapi_mapper');
|
| 31 |
}
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Implementation of hook_uninstall().
|
| 35 |
*/
|
| 36 |
function feedapi_mapper_uninstall() {
|
| 37 |
drupal_uninstall_schema('feedapi_mapper');
|
| 38 |
}
|