function quotes_update_10 in Quotes 5
Implementation of hook_update_N. Add aid_filter.
File
- ./
quotes.install, line 418 - Handles installation and updates for the quotes module.
Code
function quotes_update_10() {
global $db_type;
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {quotes_blocks} ADD COLUMN aid_filter TEXT NOT NULL");
break;
case 'pgsql':
db_add_column($ret, 'quotes_blocks', 'aid_filter', 'TEXT', array(
'not null' => TRUE,
));
}
return $ret;
}