/[drupal]/contributions/modules/ubercart/uc_store/uc_store.install
ViewVC logotype

Diff of /contributions/modules/ubercart/uc_store/uc_store.install

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

revision 1.9.2.7, Tue Jul 21 14:37:21 2009 UTC revision 1.9.2.8, Wed Oct 21 19:40:27 2009 UTC
# Line 15  function uc_store_schema() { Line 15  function uc_store_schema() {
15    $schema['uc_countries'] = array(    $schema['uc_countries'] = array(
16      'fields' => array(      'fields' => array(
17        'country_id' => array(        'country_id' => array(
18          'type' => 'serial',          'type' => 'int',
19          'unsigned' => TRUE,          'unsigned' => TRUE,
20          'not null' => TRUE,          'not null' => TRUE,
21        ),        ),
# Line 301  function uc_store_update_6004() { Line 301  function uc_store_update_6004() {
301    return $ret;    return $ret;
302  }  }
303    
304    /**
305     * Remove auto-increment from uc_countries.country_id.
306     */
307    function uc_store_update_6005() {
308      $ret = array();
309    
310      switch ($GLOBALS['db_type']) {
311        case 'mysql':
312        case 'mysqli':
313          db_change_field($ret, 'uc_countries', 'country_id', 'country_id', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE));
314          break;
315        case 'pgsql':
316          db_drop_primary_key($ret, 'uc_countries');
317          db_change_field($ret, 'uc_countries', 'country_id', 'country_id', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE), array('primary key' => array('country_id')));
318          break;
319      }
320    
321      return $ret;
322    }
323    

Legend:
Removed from v.1.9.2.7  
changed lines
  Added in v.1.9.2.8

  ViewVC Help
Powered by ViewVC 1.1.2