| 1 |
<?php
|
| 2 |
/* $Id: aweber.install,v 1.2 2008/02/28 18:04:24 coltrane Exp $ */
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*/
|
| 7 |
function aweber_install() {
|
| 8 |
drupal_install_schema('aweber');
|
| 9 |
}
|
| 10 |
|
| 11 |
/**
|
| 12 |
* Implementation of hook_uninstall().
|
| 13 |
*/
|
| 14 |
function aweber_uninstall() {
|
| 15 |
drupal_uninstall_schema('aweber');
|
| 16 |
}
|
| 17 |
|
| 18 |
/**
|
| 19 |
* Implementation of hook_schema().
|
| 20 |
*/
|
| 21 |
function aweber_schema() {
|
| 22 |
$schema['aweber'] = array(
|
| 23 |
'description' => t('Stores AWeber lead data.'),
|
| 24 |
'fields' => array(
|
| 25 |
'aid' => array(
|
| 26 |
'type' => 'serial',
|
| 27 |
'unsigned' => TRUE,
|
| 28 |
'not null' => TRUE,
|
| 29 |
),
|
| 30 |
'uid' => array(
|
| 31 |
'type' => 'int',
|
| 32 |
'unsigned' => TRUE,
|
| 33 |
'not null' => TRUE,
|
| 34 |
'default' => 0,
|
| 35 |
),
|
| 36 |
'mail' => array(
|
| 37 |
'type' => 'varchar',
|
| 38 |
'length' => 64,
|
| 39 |
'not null' => TRUE,
|
| 40 |
'default' => '',
|
| 41 |
),
|
| 42 |
'status' => array(
|
| 43 |
'type' => 'int',
|
| 44 |
'size' => 'tiny',
|
| 45 |
'unsigned' => TRUE,
|
| 46 |
'not null' => TRUE,
|
| 47 |
'default' => 0,
|
| 48 |
),
|
| 49 |
'list' => array(
|
| 50 |
'type' => 'varchar',
|
| 51 |
'length' => 15,
|
| 52 |
'not null' => TRUE,
|
| 53 |
'default' => '',
|
| 54 |
),
|
| 55 |
'id' => array(
|
| 56 |
'type' => 'int',
|
| 57 |
'size' => 'big',
|
| 58 |
'unsigned' => TRUE,
|
| 59 |
'not null' => TRUE,
|
| 60 |
'default' => 0,
|
| 61 |
),
|
| 62 |
'timestamp' => array(
|
| 63 |
'type' => 'int',
|
| 64 |
'unsigned' => TRUE,
|
| 65 |
'not null' => TRUE,
|
| 66 |
'default' => 0,
|
| 67 |
),
|
| 68 |
),
|
| 69 |
'primary key' => array('aid'),
|
| 70 |
);
|
| 71 |
return $schema;
|
| 72 |
}
|