function editor_note_update_7001 in Editor Notes 7
Adds 'text_format' database field to support text formats.
File
- ./
editor_note.install, line 99 - Database schema and installations tasks for Editor Notes module.
Code
function editor_note_update_7001() {
$table = 'editor_note';
$field_name = 'text_format';
if (!db_field_exists($table, $field_name)) {
$field = array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'The text format of an editor note.',
);
db_add_field($table, $field_name, $field);
}
}