function apachesolr_search_update_7005 in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr_search.install \apachesolr_search_update_7005()
Make the env_id length on the apachesolr_search_page table 64 characters to match the length of the env_id on all other tables
File
- ./
apachesolr_search.install, line 350 - Install and related hooks for apachesolr_search.
Code
function apachesolr_search_update_7005(&$sandbox) {
db_drop_index('apachesolr_search_page', 'env_id');
db_change_field('apachesolr_search_page', 'env_id', 'env_id', array(
'description' => 'The machine name of the search environment.',
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
), array(
'indexes' => array(
'env_id' => array(
'env_id',
),
),
));
}