function cpn_update_6100 in Code per Node 6
Make the CSS and JS fields long text fields.
File
- ./
cpn.install, line 137 - Installation, schema and update hook implementations.
Code
function cpn_update_6100() {
$ret = array();
$table = 'cpn';
$field = 'css';
$spec = array(
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
);
db_change_field($ret, $table, $field, $field, $spec);
$field = 'js';
$spec = array(
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
);
db_change_field($ret, $table, $field, $field, $spec);
drupal_set_message(t("Expanded the CPN fields to have more space for custom code. That said, you really shouldn't insert that much code."));
return $ret;
}