You are here

function key_update_7101 in Key 7

Change the "kind" db field to "type".

File

./key.install, line 131
Install, update and uninstall functions for the Key module.

Code

function key_update_7101() {
  if (db_field_exists('key_config', 'kind')) {
    db_change_field('key_config', 'kind', 'type', array(
      'description' => 'The type of key.',
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
    ));
  }
}