You are here

function wysiwyg_template_update_7203 in Wysiwyg API template plugin 7.2

Add weight field to the table wysiwyg_templates

File

./wysiwyg_template.install, line 188

Code

function wysiwyg_template_update_7203() {
  if (!db_field_exists('wysiwyg_templates', 'weight')) {
    $schema = wysiwyg_template_schema();
    db_add_field('wysiwyg_templates', 'weight', $schema['wysiwyg_templates']['fields']['weight']);
    db_add_index('wysiwyg_templates', 'weight', $schema['wysiwyg_templates']['indexes']['weight']);
  }
}