You are here

function filter_update_7010 in Drupal 7

Change {filter_format}.format and {filter}.format into varchar.

Related topics

File

modules/filter/filter.install, line 477
Install, update, and uninstall functions for the Filter module.

Code

function filter_update_7010() {
  db_change_field('filter_format', 'format', 'format', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'description' => 'Primary Key: Unique machine name of the format.',
  ));
  db_change_field('filter', 'format', 'format', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'description' => 'Foreign key: The {filter_format}.format to which this filter is assigned.',
  ));
}