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

Diff of /contributions/modules/bookexpand/bookexpand.install

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

revision 1.4, Sun Oct 14 13:15:41 2007 UTC revision 1.5, Mon Sep 1 10:35:35 2008 UTC
# Line 8  function bookexpand_install() { Line 8  function bookexpand_install() {
8    switch ($GLOBALS['db_type']) {    switch ($GLOBALS['db_type']) {
9      case 'mysql':      case 'mysql':
10      case 'mysqli':      case 'mysqli':
11        db_query("CREATE TABLE IF NOT EXISTS {og_book} (        db_query("CREATE TABLE {og_book} (
12          `og_nid` int(11) NOT NULL default '0',          `og_nid` int(11) NOT NULL default '0',
13          `book_nid` int(11) default NULL,          `book_nid` int(11) NOT NULL default '0',
         PRIMARY KEY  (`og_nid`)  
14          ) /*!40100 DEFAULT CHARACTER SET utf8 */;");          ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
15        case 'pgsql':
16          db_query("CREATE TABLE {og_book} (
17            og_nid integer NOT NULL default '0',
18            book_nid integer NOT NULL default '0'
19          )");
20    }    }
21  }  }
22    
23  /**  /**
24   * Updates   * Implementation of hook_uninstall().
25   */   */
26  ?>  function bookexpand_uninstall() {
27      variable_del('bookexpand_filter');
28      variable_del('bookexpand_default_filter');
29      variable_get('bookexpand_exclude_user_1', TRUE);
30      db_query("DROP TABLE {og_book}");
31    }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.2