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

Diff of /contributions/modules/og2list/og2list.install

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

revision 1.15, Tue Nov 28 18:07:25 2006 UTC revision 1.16, Sun Aug 5 12:30:19 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /**  /**
3   * $Id: og2list.install,v 1.14 2006/09/05 21:32:36 killes Exp $   * $Id: og2list.install,v 1.15 2006/11/28 18:07:25 killes Exp $
4   *   *
5   * MySQL definitions for og2list.module   * MySQL definitions for og2list.module
6   *   *
# Line 242  function og2list_update_8() { Line 242  function og2list_update_8() {
242    }    }
243    return $ret;    return $ret;
244  }  }
245    
246    // now using db_next_id() from Drupal API instead of mysql_next_id() when inserting new messages.
247    function og2list_update_9() {
248      $ret = array();
249    
250      switch ($GLOBALS['db_type']) {
251        case 'mysql':
252        case 'mysqli':
253          $ret[] = update_sql("ALTER TABLE og2list_outgoing_content CHANGE `mid` `mid` INT( 10 ) UNSIGNED NOT NULL");
254          $ret[] = update_sql("REPLACE INTO {sequences} (name,id) SELECT 'og2list_outgoing_content_mid' AS name, MAX(mid) AS id FROM og2list_outgoing_content");
255      }
256      return $ret;
257    }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.2