You are here

function features_update_7203 in Features 7.2

Reduce varchar lengths in 'features_signature' table. See #3181858.

File

./features.install, line 321
Install, update and uninstall functions for the features module.

Code

function features_update_7203() {

  // The following operations are only needed for sites that previously ran an
  // older version of features_update_7202(). Trying to check this would
  // probably be more copmlex, so we run it anyway.
  db_change_field('features_signature', 'module', 'module', array(
    'description' => 'Name of the feature module.',
    'type' => 'varchar',
    'length' => 64,
    'not null' => TRUE,
  ));
  db_change_field('features_signature', 'component', 'component', array(
    'description' => 'Name of the features component.',
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
  ));
}