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

Diff of /contributions/modules/nudge/nudge.install

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

revision 1.1, Sun Sep 16 17:39:58 2007 UTC revision 1.1.2.1, Tue Apr 29 02:58:16 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: nudge.install,v 1.1 2007/09/16 17:39:58 kbahey Exp $
3    
4  function nudge_install() {  function nudge_install() {
5    switch ($GLOBALS['db_type']) {    switch ($GLOBALS['db_type']) {
# Line 14  function nudge_install() { Line 14  function nudge_install() {
14          PRIMARY KEY (nudger_uid, nudgee_uid, nid)          PRIMARY KEY (nudger_uid, nudgee_uid, nid)
15        ) /*!40100 DEFAULT CHARACTER SET utf8 */");        ) /*!40100 DEFAULT CHARACTER SET utf8 */");
16                    break;                    break;
17        case 'pgsql':
18          db_query("CREATE TABLE {nudge} (
19            nudger_uid INT NOT NULL,
20            nudgee_uid INT NOT NULL,
21            nid        INT NOT NULL,
22            timestamp  INT NOT NULL,
23            status     SMALLINT  DEFAULT 0,
24            PRIMARY KEY (nudger_uid, nudgee_uid, nid)
25          )");
26          break;
27          }          }
28  }  }
29    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2