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

Diff of /contributions/modules/xmpp/xmpp.install

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

revision 1.1 by mkhitrov, Wed Aug 15 17:16:20 2007 UTC revision 1.2 by mkhitrov, Mon Aug 20 03:17:29 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id$ */  /* $Id: xmpp.install,v 1.1 2007/08/15 17:16:20 mkhitrov Exp $ */
3    
4  function xmpp_install() {  function xmpp_install() {
5          switch ($GLOBALS['db_type']) {    switch ($GLOBALS['db_type']) {
6                  case 'mysql':      case 'mysql':
7                  case 'mysqli':      case 'mysqli':
8                          $result = db_query('        $result = db_query('
9                            CREATE TABLE {xmpp_presence} (          CREATE TABLE {xmpp_presence} (
10                                  remote varchar(255),            remote varchar(255),
11                              local varchar(255)            local varchar(255)
12                            ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;          ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;
13                          ');        ');
14                          break;        break;
15          }    }
16  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.3