function custom_pagers_update_2 in Custom Pagers 5
Same name and namespace in other branches
- 6 custom_pagers.install \custom_pagers_update_2()
File
- ./
custom_pagers.install, line 58
Code
function custom_pagers_update_2() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {custom_pager} ADD cache_list tinyint NOT NULL default 0");
$ret[] = update_sql("ALTER TABLE {custom_pager} ADD reverse_list tinyint NOT NULL default 0");
break;
case 'pgsql':
db_add_column($ret, 'custom_pager', 'cache_list', 'smallint', array(
'not null' => TRUE,
'default' => 0,
));
db_add_column($ret, 'custom_pager', 'reverse_list', 'smallint', array(
'not null' => TRUE,
'default' => 0,
));
break;
}
return $ret;
}