| 1 |
<?php
|
| 2 |
// $Id: notify.install,v 1.4.4.2 2008/08/27 14:07:15 matt2000 Exp $
|
| 3 |
|
| 4 |
function notify_schema() {
|
| 5 |
$schema['notify'] = array(
|
| 6 |
'fields' => array(
|
| 7 |
'uid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'disp-width' => '10'),
|
| 8 |
'status' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0, 'disp-width' => '2'),
|
| 9 |
'node' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0, 'disp-width' => '2'),
|
| 10 |
'comment' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0, 'disp-width' => '2'),
|
| 11 |
'attempts' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0, 'disp-width' => '4'),
|
| 12 |
'teasers' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0, 'disp-width' => '4'),
|
| 13 |
),
|
| 14 |
'primary key' => array('uid'),
|
| 15 |
|
| 16 |
);
|
| 17 |
|
| 18 |
return $schema;
|
| 19 |
}
|
| 20 |
|
| 21 |
function notify_install() {
|
| 22 |
// Create my tables.
|
| 23 |
drupal_install_schema('notify');
|
| 24 |
}
|
| 25 |
|
| 26 |
function notify_uninstall() {
|
| 27 |
// Drop my tables.
|
| 28 |
drupal_uninstall_schema('notify');
|
| 29 |
}
|