function cpn_update_7105 in Code per Node 7
Add the 'noscript' field to the {cpn} table.
File
- ./
cpn.install, line 402 - Installation, schema and update hook implementations.
Code
function cpn_update_7105() {
$table = 'cpn';
$field = 'noscript';
if (!db_field_exists($table, $field)) {
$spec = array(
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
);
db_add_field($table, $field, $spec);
return t('Added the "noscript" field to the {cpn} table.');
}
else {
return t('The "noscript" field already exists in the {cpn} table.');
}
}