function page_theme_update_6104 in Page Theme 7.2
Same name and namespace in other branches
- 6 page_theme.install \page_theme_update_6104()
- 7 page_theme.install \page_theme_update_6104()
Add page theme ID field and update table indices.
File
- ./
page_theme.install, line 163 - Install, update and uninstall functions for the page_theme module.
Code
function page_theme_update_6104() {
db_drop_primary_key('page_theme');
db_add_field('page_theme', 'ptid', array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
), array(
'primary key' => array(
'ptid',
),
));
db_add_unique_key('page_theme', 'theme', array(
'theme',
));
db_add_index('page_theme', 'list', array(
'theme',
'weight',
));
}