function dynamicload_update_2 in Javascript Tools 5
File
- dynamicload/
dynamicload.install, line 46
Code
function dynamicload_update_2() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {dynamicload_blocks} ADD refresh_interval int NOT NULL default '0'");
break;
case 'pgsql':
db_add_column($ret, 'dynamicload_blocks', 'refresh_interval', 'int', array(
'not null' => TRUE,
'default' => 0,
));
break;
}
return $ret;
}