| 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 |
| 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 |
); |
); |
| 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 |
/** |
/** |