/[drupal]/drupal/modules/system/system.install
ViewVC logotype

Diff of /drupal/modules/system/system.install

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

revision 1.416, Sat Nov 7 13:35:21 2009 UTC revision 1.417, Sun Nov 8 09:29:07 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: system.install,v 1.415 2009/10/24 23:19:21 webchick Exp $  // $Id: system.install,v 1.416 2009/11/07 13:35:21 dries Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 1567  function system_schema() { Line 1567  function system_schema() {
1567      ),      ),
1568      'primary key' => array('filename'),      'primary key' => array('filename'),
1569      'indexes' => array(      'indexes' => array(
1570        'modules' => array('type', 'status', 'weight', 'name'),        'system_list' => array('status', 'weight', 'name'),
       'bootstrap' => array('type', 'status', 'bootstrap', 'weight', 'name'),  
1571        'type_name' => array('type', 'name'),        'type_name' => array('type', 'name'),
1572      ),      ),
1573    );    );
# Line 2196  function system_update_7017() { Line 2195  function system_update_7017() {
2195  }  }
2196    
2197  /**  /**
2198   * Shorten the {system}.type column and add an index on type and name.   * Shorten the {system}.type column and modify indexes.
2199   */   */
2200  function system_update_7018() {  function system_update_7018() {
2201    db_drop_index('system', 'modules');    db_drop_index('system', 'modules');
2202    db_drop_index('system', 'type_name');    db_drop_index('system', 'type_name');
2203      db_drop_index('system', 'bootstrap');
2204    db_change_field('system', 'type', 'type', array('type' => 'varchar', 'length' => 12, 'not null' => TRUE, 'default' => ''));    db_change_field('system', 'type', 'type', array('type' => 'varchar', 'length' => 12, 'not null' => TRUE, 'default' => ''));
   db_add_index('system', 'modules', array('type', 'status', 'weight', 'name'));  
2205    db_add_index('system', 'type_name', array('type', 'name'));    db_add_index('system', 'type_name', array('type', 'name'));
2206      db_add_index('system', 'system_list', array('status', 'weight', 'name'));
2207  }  }
2208    
2209  /**  /**

Legend:
Removed from v.1.416  
changed lines
  Added in v.1.417

  ViewVC Help
Powered by ViewVC 1.1.2