filter_update_7010

7 filter.install filter_update_7010()

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.',
  ));
}
Login or register to post comments