/[drupal]/contributions/modules/notify/notify.install
ViewVC logotype

Contents of /contributions/modules/notify/notify.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download) (as text)
Tue Feb 3 01:52:57 2009 UTC (9 months, 3 weeks ago) by matt2000
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +23 -54 lines
File MIME type: text/x-php
Updating HEAD from DRUPAL-6 branch.
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 }

  ViewVC Help
Powered by ViewVC 1.1.2